Created
August 28, 2014 10:06
-
-
Save n-shinya/35b7d1c3be628fed5809 to your computer and use it in GitHub Desktop.
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 'twitter' | |
client = Twitter::Streaming::Client.new do |config| | |
config.consumer_key = 'xxx' | |
config.consumer_secret = 'xxx' | |
config.access_token = 'xxx' | |
config.access_token_secret = 'xxx' | |
end | |
client.filter(track: 'xxx') do |obj| | |
puts obj.text if obj.is_a?(Twitter::Tweet) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment