Skip to content

Instantly share code, notes, and snippets.

@ignisf
Last active December 18, 2015 19:09
Show Gist options
  • Save ignisf/5830797 to your computer and use it in GitHub Desktop.
Save ignisf/5830797 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
require 'tweetstream'
require 'ap'
TweetStream.configure do |config|
config.consumer_key = 'a'
config.consumer_secret = 'b'
config.oauth_token = 'c'
config.oauth_token_secret = 'd'
config.auth_method = :oauth
end
client = TweetStream::Client.new
client.track("ДАНСwithme", "ignorevolen", "fostavka") do |status|
ap { :user => status[:user][:screen_name],
:location => (status.geo or status.user.location),
:text => status.text }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment