Skip to content

Instantly share code, notes, and snippets.

@arcolife
Forked from anonymous/file1.py
Created June 29, 2014 23:26
Show Gist options
  • Save arcolife/5888360b186ccca25707 to your computer and use it in GitHub Desktop.
Save arcolife/5888360b186ccca25707 to your computer and use it in GitHub Desktop.
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