Fun with the Twitter Streaming API
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
mentions
reducers
wants
.gitignore
Gemfile
Gemfile.lock
README.md
models.rb
sample.rb
stream.rb

README.md

Stream

Fun with the Twitter Streaming API (with OAuth!)

Setup (just do this once)

Copy config/oauth.yml.example to config/oauth.yml and enter your OAuth details.

Then run:

bundle install

Get tweets!!

bundle exec ruby stream.rb

What do people want?

bundle exec ruby wants/map.rb | sort | bundle exec ruby wants/reduce.rb

Who has the most @mentions?

bundle exec ruby mentions/map.rb | sort | bundle exec ruby mentions/reduce.rb