Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'tweetstream'
- TWITTER_USERNAME = 'XXXXXXX'
- TWITTER_PASSWORD = 'XXXXXXXX'
- ts = TweetStream.configure do |config|
- config.username = 'XXXXXX'
- config.password = 'XXXXXX'
- config.auth_method = :basic
- end
- puts ts
- ts = TweetStream::Client.new({:username => TWITTER_USERNAME, :password => TWITTER_PASSWORD}).sample do |status|
- puts "[#{status.user.screen_name}] #{status.text}"
- end
- puts ts
Add Comment
Please, Sign In to add comment