Twitter bot for easily downloading videos/GIFs off tweets
On April 4, 2023, Twitter suspended @this_vid, after nearly 5 years and millions of users. 😢
Easily download videos/GIFs off Twitter. Mention the bot (@this_vid) in a reply to the tweet containing the video, and it'll reply with a download link in a few minutes.
The bot consists of several AWS Lambda functions that work in tandem:
This function runs every 4 minutes and checks for new mentions. It publishes these new mentions as a new notification on an SNS topic. The 4-minute interval is so as to not hit Twitter's rate limits and minimize AWS Lambda usage time, while being near-realtime.
This is triggered by new notifications on the SNS topic. It:
This is triggered by a HTTP request to the <AWS API Gateway URL>/<Twitter-handle> (for instance, http://thisvid.space/jack). It renders a page showing a list of the user's recent downloads.
Renders the homepage 😁. See http://thisvid.space.
This re-publishes failed tasks (stored in Redis) as a new SNS message. For now, it can only be triggered manually.