How to search your Twitter DMs with Google Reader

CC Chapman on Twitter said:

The problem with more and more conversations happening over DM is there is no easy way to search them

Which is more or less true in the native interface. Luckily, RSS comes to the rescue.

From the Twitter API:

direct_messages

Returns a list of the 20 most recent direct messages sent to the authenticating user. The XML and JSON versions include detailed information about the sending and recipient users.

URL:

http://twitter.com/direct_messages.format (requires authentication)

So here’s how you do it. Craft a URL like this:

http://username:[email protected]/direct_messages.rss

Copy this.

Updated: For DMs you have SENT: http://username:[email protected]/direct_messages_sent.rss

There’s a bug in the way either Twitter renders RSS or Google Reader interprets it. Not sure which, but you need to set up Yahoo Pipes as an intermediary to make everything and everyone happy.

Go to Yahoo Pipes and drag a Fetch Feed onto the worksheet. Paste the Twitter RSS URL there. If you’re doing DMs sent, add a second box under the first one and paste the second URL there.

Pipes: editing 'Twitter DMs'

Next, name it, save it, and run the pipe. Do not publish it or the pipe will be publicly viewable! Copy the Get as RSS URL.

Pipes: Twitter DMs

Now go to Google Reader. Paste in the Pipe RSS URL.

Google Reader (1000+)

Congratulations. Now all new DMs will be recorded by Reader and will be fully searchable from the search box.

Google Reader (1000+)

You’re done!

If you’d prefer all in one using GMail, you can also take the Pipes RSS feed and use any RSS to Email service (feedburner, feedblitz, etc.) and have your DMs emailed to you.

Update: If anyone knows how to implement this feature using OAuth rather than plaintext, please comment!


Did you enjoy this blog post? If so, please subscribe right now!

Get this and other great articles from the source at www.ChristopherSPenn.com

Related posts:

  1. Newest Twitter Pipe: URL catchall
  2. How to read Twitter DMs like Email
  3. Block Harry Potter and the Deathly Hollows Spoilers on Twitter with Pipes
  • http://twitter.com/schneidermike schneidermike

    This is awesome Chris. Well done. I have a sinking feeling that some noob is only go to half-read this and publish their DMs. <getting out the popcorn>

    Follow instructions carefully people.

  • http://twitter.com/schneidermike schneidermike

    This is awesome Chris. Well done. I have a sinking feeling that some noob is only go to half-read this and publish their DMs. <getting out the popcorn>

    Follow instructions carefully people.

  • http://JoselinMane.com JoselinMane

    Great job putting this together soo quickly! Very informative and now to work on it.

  • http://JoselinMane.com JoselinMane

    Great job putting this together soo quickly! Very informative and now to work on it.

  • http://www.gradontripp.com gradontripp

    This is great. First time playing with Pipes, but it's super easy – and no, Mike, I wasn't that noob! Thanks for the tutorial, Christopher.

  • belchingmonkey

    This is awesome Chris. Well done. I have a sinking feeling that some noob is only go to half-read this and publish their DMs. <getting out the popcorn>

    Follow instructions carefully people.

  • belchingmonkey

    This is awesome Chris. Well done. I have a sinking feeling that some noob is only go to half-read this and publish their DMs. <getting out the popcorn>

    Follow instructions carefully people.

  • http://JoselinMane.com JoselinMane

    Great job putting this together soo quickly! Very informative and now to work on it.

  • http://JoselinMane.com JoselinMane

    Great job putting this together soo quickly! Very informative and now to work on it.

  • http://www.gradontripp.com gradontripp

    This is great. First time playing with Pipes, but it's super easy – and no, Mike, I wasn't that noob! Thanks for the tutorial, Christopher.

  • http://www.gradontripp.com gradontripp

    This is great. First time playing with Pipes, but it's super easy – and no, Mike, I wasn't that noob! Thanks for the tutorial, Christopher.