Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import tweepy
from tweepy import OAuthHandler
import scrapercfg as key
CONSUMER_KEY = key.consumer_secret
CONSUMER_SECRET = key.consumer_secret
ACCESS_TOKEN = key.access_token
ACCESS_SECRET = key.access_secret
auth = OAuthHandler(CONSUMER_KEY,CONSUMER_SECRET)
auth.set_access_token(ACCESS_TOKEN,ACCESS_SECRET)
api = tweepy.API(auth)
public_tweets = api.home_timeline()
for tweet in public_tweets:
print(tweet.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment