nakajima / mytweets-rb
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README.md | ||
| |
Rakefile | ||
| |
last-year.rb | ||
| |
mentions.rb | ||
| |
mytweets.rb | ||
| |
replies.rb | ||
| |
searcher.rb |
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

