Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'mongo'
- require 'tweetstream'
- USER = "<username>"
- PASS = "<password>"
- conn = Mongo::Connection.new
- db = conn.db("dbname")
- tweets = db.collection("collname")
- TweetStream::Client.new(USER,PASS).sample do |status|
- tweets.insert(status)
- end
Add Comment
Please, Sign In to add comment