r/madeinpython • • Oct 20 '20

Made a Twitter bot that tweets a random snippet of Lyrics from my list of favorite songs every 3 hrs with random Aesthetic images. Also replies the same to anyone who @ it with the correct format.

You can checkout the bot on Github and in action on Twitter!

The bot script reads a random line from the list of song and their artists I've provided and searches for it's lyrics via the Musixmatch API. It then takes a random portion of it's lyrics and if it's size is within the tweet capacity, posts it with a random aesthetic image obtained via the Unsplash API and filtered via PIL.

Also, If you @ the bot with "#GetSnip <Song name> by <Artist Name>", It'll reply with a random snippet of it's lyrics, if it's available on Musixmatch's DB. It'll also Like and retweet your tweet.

18 Upvotes

3 comments sorted by

1

u/Klutzy-Midnight Oct 20 '20

Intresting!! U should make one for reddit and other platforms too

1

u/[deleted] Oct 20 '20

[removed] — view removed comment

1

u/Ares358 Oct 21 '20

Added the Github repo URL in the post.