Skip to content

Instantly share code, notes, and snippets.

Created June 29, 2014 23:24
Show Gist options
  • Save anonymous/5089ce74e9fd61ffe7a3 to your computer and use it in GitHub Desktop.
Save anonymous/5089ce74e9fd61ffe7a3 to your computer and use it in GitHub Desktop.
Pasted from IPython
import tweepy
import os
os.environ.get('TWITTER_ACCESS_TOKEN')
os.environ.get('TWITTER_ACCESS_SECRET')
consumer_secret = os.environ.get('TWITTER_SECRET')
consumer_key = os.environ.get('TWITTER_KEY')
access_token = os.environ.get('TWITTER_ACCESS_TOKEN')
access_token_secret = os.environ.get('TWITTER_ACCESS_SECRET')
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
api.search(q="fifa")
%pastebin 1-13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment