github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

nakajima / mytweets-rb

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Get all your tweets from Twitter — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added total mention count because why not? 
nakajima (author)
Mon Dec 28 09:43:30 -0800 2009
commit  1cee7ee05c81c2a4c049f8867d1353296f5cf8f6
tree    0ba6b761635adfbb884c96b015ab8ddde33daa28
parent  95c243dca7ba0a6a14026b45e41bb89ffab61667
mytweets-rb /
name age
history
message
file .gitignore Loading commit data...
file README.md
file Rakefile
file last-year.rb
file mentions.rb
file mytweets.rb
file replies.rb
file 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

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server