Created
July 5, 2017 02:34
-
-
Save stringertheory/42b067b4f81947586d6471a45b8692a4 to your computer and use it in GitHub Desktop.
first words of cookywook's tweets
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 os | |
import tweepy | |
auth = tweepy.OAuthHandler(os.getenv('TW_CKEY'), os.getenv('TW_CSECRET')) | |
auth.set_access_token(os.getenv('TW_ATOKEN'), os.getenv('TW_ASECRET')) | |
api = tweepy.API(auth) | |
for tweet in api.user_timeline(screen_name='cookywook', count=40): | |
word = tweet.text.split()[0] | |
print word, | |
print '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment