Skip to content

Instantly share code, notes, and snippets.

@ghomasHudson
Created October 27, 2022 13:05
Show Gist options
  • Save ghomasHudson/d4e34285e1d62ea25feea826d6eadd6d to your computer and use it in GitHub Desktop.
Save ghomasHudson/d4e34285e1d62ea25feea826d6eadd6d to your computer and use it in GitHub Desktop.
tweeeet
import snscrape.modules.twitter as sntwitter
import sys
search_str = " ".join(sys.argv[1:])
for i,tweet in enumerate(sntwitter.TwitterSearchScraper(search_str).get_items()):
if "kevin" in tweet.user.displayname.lower():
print(tweet.user.displayname)
print("@"+tweet.user.username)
print(tweet.content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment