Skip to main content

Posts

Showing posts with the label ruby

Track Twitter feeds live in your console with Ruby, Rake and Awesome print

Tools used   Twitter streaming api in Ruby : https://github.com/tweetstream/tweetstream    Rake (I am using this in a Rails application but you can use just ruby/rake)   Awesome print Ruby Gem (prints objects in a nice format into standard out): https://github.com/michaeldv/awesome_print  Sign up for a Twitter app at apps.twitter.com to get your auth keys to use in the code. Setup ruby, then install the awesome_print gem and tweetstream gem gem install tweetstream gem install awesome_print or if using Rails, add to your Gemfile gem 'awesome_print' gem 'tweetstream' then run bundle install If you run this task as rake tweets:tweet1, you can live track tweets of your choosing on your console, sweet. See this gist I posted with the tracker code, very very simple, try it out! https://gist.github.com/binodpanta/d577b24bb776a99a43aa