Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stringertheory
Created July 5, 2017 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stringertheory/42b067b4f81947586d6471a45b8692a4 to your computer and use it in GitHub Desktop.
Save stringertheory/42b067b4f81947586d6471a45b8692a4 to your computer and use it in GitHub Desktop.
first words of cookywook's tweets
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