Skip to content

Instantly share code, notes, and snippets.

@lxfontes
Created October 19, 2011 01:46
Show Gist options
  • Save lxfontes/1297289 to your computer and use it in GitHub Desktop.
Save lxfontes/1297289 to your computer and use it in GitHub Desktop.
idea ripper
require "rubygems"
require "tweetstream"
TweetStream.configure do |config|
config.username = '<user>'
config.password = '<pw>'
config.auth_method = :basic
config.parser = :json_gem
end
TweetStream::Client.new.on_error {|message|
puts "error #{message}"
}.track("#idea","#ideia") do |status|
puts "[#{status.user.screen_name}] #{status.text}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment