Skip to content

Stream tweets using Twitter API v2 using Tweepy to Amazon Kinesis Data Stream

Notifications You must be signed in to change notification settings

sufiankaki/tweets2kinesis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Stream Tweets and Put them to AWS Kinesis Data Streams

This project deals with how you can stream tweets using Twitter API v2 using Tweepy and insert them into a Kinesis Data Stream. This work is built over the work you may find here

While going through this above link, I realised it does not support Twitter API v2 so I made some changes to the code that you can find in RetrieveTweets.py

Additionally I also created a script to get the Stream records GetRecords.py

I executed these scripts on an EC2 instance to which I attached an IAM Role allowing it to have the following permissions Kinesis

  • Write
    • Put Records
  • Read
    • Get Records
    • Describe Stream
    • Get Shard Iterator

You may find the video walkthrough of this implementation here

About

Stream tweets using Twitter API v2 using Tweepy to Amazon Kinesis Data Stream

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages