~/talk

Consuming the Twitter Streaming API with Ruby and MongoDB

Talkat LoneStarRuby Conf 2011 · 2011-08-11..08-13· [ruby, databases]
slides:none on file

A runnable Ruby command‑line script connects to the Twitter Streaming API, authenticates with HTTP Basic, parses the verbose JSON and inserts each status directly into MongoDB using the tweetstream gem and the mongo gem, deployable to Heroku with mongolab. It demonstrates tracking mentions (example: @aplusk), honors deletions, and relies on limits: 400 keywords, 5,000 user IDs, 25 location boxes and one stream per account, letting you collect raw data for later analysis.

AI-written summary · about

  1. 0:00Twitter Streaming API intro
  2. 3:10Streaming API overview
  3. 8:24Tweet Stream Gem & JSON
  4. 13:53HTTP Basic Auth setup
  5. 16:43MongoDB for tweets
  6. 21:49Ruby script walkthrough
  7. 27:16Security & GitHub best practices
  8. 29:39Next steps & applications
  9. 30:49Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.