Created
October 19, 2011 01:46
-
-
Save lxfontes/1297289 to your computer and use it in GitHub Desktop.
idea ripper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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