Sunday, February 14, 2010

Making new twitter followers marginally more convenient

Well, one tiny annoyance that I just randomly decided I felt like itching - I get a handful of emails from twitter saying so-and-so is following me. Usually it's somebody I'm not interested in, but on occasion it's a friend. What annoys me is that I have to open their profile to see. I'd prefer to see the bio and their last few tweets in the email itself. Would help me decide much faster. Well, I've started on a real hack of a solution. It should make it a little less annoying:

http://gist.github.com/304335

Look it over. If you trust it, run it on a command prompt (works on Linux, all I can say). It asks for your gmail password. It opens browser tabs for all the twitter accounts that have followed you that are still in your gmail inbox.

Now, I'm making some wild assumptions about the emails that Twitter is sending us (namely that the first Twitter url is the profile in question), so this may not open up everything correctly. Especially if Twitter changes the email. So, I also open up a tab with a gmail search for all those emails. You can look it over and confirm that it opened up the right tabs, plus this helps you archive them right away.

If it doesn't work, do this first:

https://www.google.com/accounts/DisplayUnlockCaptcha

I guess it tells Google that your computer isn't engaging in any anti-human activities. I had to do it.

I may eventually have it generate an html page with all the useful info right there, so you can look it over quicker. I'll also look for a way to have a GUI password entry thing, so you won't need a cmd prompt. Or, you know, if any of you Open Sourcerers want to do it yourself and send back the update, that would be great too.

4 comments:

Tim said...

Cool, you could definitely use some of my code to make the html page.

Why do you put this stuff in gists? I can't tell for sure, but it looks less accessible than a regular repo.

Dan said...

Gist is just fast to do. And I thought you could upgrade it to a full repo.

Jordan Wilberding said...

Looks very cool Dan. How long does it take to go through all the emails?

Dan said...

It doesn't take too long actually, though I only have a couple hundred emails in my inbox, and that's all I search. I don't imagine it does much more than a standard IMAP application would. I didn't make a search algorithm or anything, I used IMAP's built-in search. I bet that's even done on Gmail's side, before anything gets sent over the wire.