Created
March 25, 2020 20:43
-
-
Save hclockzz/c49d6625607bda401a54ba414ce8da38 to your computer and use it in GitHub Desktop.
For Medium post
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
# 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