Skip to content

Instantly share code, notes, and snippets.

@GlinZachariah
Last active November 5, 2018 08:50
Show Gist options
  • Save GlinZachariah/b369746edee6ab005ac2092e68410136 to your computer and use it in GitHub Desktop.
Save GlinZachariah/b369746edee6ab005ac2092e68410136 to your computer and use it in GitHub Desktop.
Twitter Data Extractor
import twitter
api = twitter.Api(consumer_key='FILL-ME-IN',
consumer_secret='FILL-ME-IN',
access_token_key='FILL-ME-IN',
access_token_secret='FILL-ME-IN')
print(api.VerifyCredentials())
search = api.GetSearch("happy") # Replace happy with your search
for tweet in search:
print(tweet.id, tweet.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment