Skip to content

Instantly share code, notes, and snippets.

@hclockzz
Created March 25, 2020 20:43
Show Gist options
  • Save hclockzz/c49d6625607bda401a54ba414ce8da38 to your computer and use it in GitHub Desktop.
Save hclockzz/c49d6625607bda401a54ba414ce8da38 to your computer and use it in GitHub Desktop.
For Medium post
# create kinesis client connection
kinesis_client = boto3.client('kinesis',
region_name='', # enter the region
aws_access_key_id='', # fill your AWS access key id
aws_secret_access_key='') # fill you aws secret access key
# create instance of the tweepy tweet stream listener
listener = TweetStreamListener()
# set twitter keys/tokens
auth = OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
# create instance of the tweepy stream
stream = Stream(auth, listener)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment