Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'yajl'
- require 'tweetstream'
- require 'growl'
- username = 'username'
- password = 'password'
- twitter_logo = File.join(File.expand_path(File.dirname(__FILE__)), 'twitter.png')
- keywords = %w(yankees rays)
- TweetStream::Client.new(username, password, :yajl).track(*keywords) do |status|
- Growl.notify do |n|
- n.message = status.text
- n.title = status.user.screen_name
- n.image = twitter_logo
- end if Growl.installed?
- end
Add Comment
Please, Sign In to add comment