This commit is contained in:
2022-01-07 18:07:25 -08:00
parent a9590c0dce
commit bab7810cd3
22 changed files with 114606 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env python3
from twitterscraper import query_tweets
def main():
list_of_tweets = query_tweets("@sneak_announce", 10)
#print the retrieved tweets to the screen:
for tweet in list_of_tweets:
print(tweet)
#Or save the retrieved tweets to file:
#file = open("output.txt","w")
#for tweet in query_tweets("Trump OR Clinton", 10):
#file.write(str(tweet.text.encode('utf-8')))
#file.close()
if __name__ == "__main__":
main()