A dreddful little twitter bot that grabs a random lyric from any Freddie Dredd song and attaches a random picture of a cat.
- Downloads a CSV of all Freddie Dredd Songs from s3 and creates a list from that CSV
- This list was generated by grabbing all Freddie songs that are listed on Genius
- Picks a random song from that list and grabs the lyrics
- Cleans up the data and picks some random lyrics
- Gets a cat image from the The Cat API
- Downloads that image into memory, uploads the bytes to s3
- Downloads the image from the s3 bucket into the running AWS Lambda function
- Combines the lyrics and the image in a tweet and posts it using Tweepy
boto3==1.26.32
lyricsgenius==3.0.1
requests==2.28.1
tweepy==4.12.1
For fun. Requires access to my s3 bucket so getting it up and running on your local machine might be tricky. Feel free to clone/fork and mess around with it.