public
Description: Get all your tweets from Twitter
Homepage:
Clone URL: git://github.com/nakajima/mytweets-rb.git
nakajima (author)
Sun Nov 01 13:45:57 -0800 2009
commit  2c2928a40472eac3ebc8a5591a683a38f3625100
tree    582b47888bf04c252a29d81acb5cd761701fb945
parent  ec4bb98e4517f288bfef93897f87b66c8a94a032
name age message
file .gitignore Thu Oct 22 11:44:19 -0700 2009 Ignore config.rb and JSON files [nakajima]
file README.md Sun Nov 01 13:45:57 -0800 2009 Added Rakefile, other crap (not very atomic com... [nakajima]
file Rakefile Sun Nov 01 13:45:57 -0800 2009 Added Rakefile, other crap (not very atomic com... [nakajima]
file mentions.rb Tue Oct 27 18:17:49 -0700 2009 Rename Tweet to Tweetion [nakajima]
file mytweets.rb Sun Nov 01 13:45:57 -0800 2009 Added Rakefile, other crap (not very atomic com... [nakajima]
file replies.rb Tue Oct 27 18:18:09 -0700 2009 Added replies.rb [nakajima]
file searcher.rb Tue Oct 27 18:17:49 -0700 2009 Rename Tweet to Tweetion [nakajima]
README.md

my-tweets

Fetches all of your tweets from Twitter, saving them to a json file.

Usage

Create a file named config.rb in the same directory as mytweets.rb that defines USERNAME and PASSWORD constants that contain your Twitter credentials. Then run the script:

$ ruby mytweets.rb

You can also dump all of your tweets to the terminal as JSON if you want:

$ ruby mytweets.rb --verbose

Extras

Make sure you've already run ruby mytweets.rb before you attempt these.

Search your Tweetion (all your tweets)

$ ruby searcher.rb something

or:

$ irb
>> require 'searcher'
=> true
>> Tweetion.search /hello/i

See who you mention

$ ruby mentions.rb

You can limit:

$ ruby mentions.rb --limit 10

Warning: You may be surprised at you talk to the most.

See who you reply to

$ ruby replies.rb

Again, you can limit:

$ ruby replies.rb --limit 10

Inspired by github.com/simonw/mytweets