Created
June 29, 2014 23:24
-
-
Save anonymous/5089ce74e9fd61ffe7a3 to your computer and use it in GitHub Desktop.
Pasted from IPython
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
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