Skip to content

Instantly share code, notes, and snippets.

@paulmwatson
Last active February 25, 2022 08:06
Show Gist options
  • Save paulmwatson/606e75539647c867acf38954fbda0db4 to your computer and use it in GitHub Desktop.
Save paulmwatson/606e75539647c867acf38954fbda0db4 to your computer and use it in GitHub Desktop.
import tweepy
import os 
API_KEY = os.getenv('API_KEY')
API_SECRET = os.getenv('API_SECRET'
auth = tweepy.AppAuthHandler(API_KEY, API_SECRET)
api = tweepy.API(auth, wait_on_rate_limit=True
items = tweepy.Cursor(api.user_timeline, screen_name='NPATweets', count=200).items(3200)
for item in items:
print(item.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment