Skip to content

Instantly share code, notes, and snippets.

@kurasaiteja
Created May 28, 2020 15:24
Show Gist options
  • Save kurasaiteja/79c4b3ca9a0d20fd871ecf1e513e75ef to your computer and use it in GitHub Desktop.
Save kurasaiteja/79c4b3ca9a0d20fd871ecf1e513e75ef to your computer and use it in GitHub Desktop.
from tweepy import Stream
# Set up words to track
keywords_to_track = ['#javascript','#python']
# Instantiate the SListener object
listen = SListener(api)
# Instantiate the Stream object
stream = Stream(auth, listen)
# Begin collecting data
stream.filter(track = keywords_to_track)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment