Last active
February 25, 2022 08:06
-
-
Save paulmwatson/606e75539647c867acf38954fbda0db4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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