Last active
November 5, 2018 08:50
-
-
Save GlinZachariah/b369746edee6ab005ac2092e68410136 to your computer and use it in GitHub Desktop.
Twitter Data Extractor
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 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