A Twitter bot that posts lyrics from any given Spotify playlist (or in this case, this one)
Using the Spotify, Twitter and AZlyrics API, it will first pull the number of tracks in the playlist, then will grab a random subset of 100 tracks, pick a track, and use grab the lyrics for said track. It will then remove all the [Chorus], and [Verse 1] tags. It will then pick 2 random lines to post on Twitter.
- Clone repository
- Make .env file in the root folder like this
TWITTERCONSUMER=
TWITTERCONSECRET=
TWITTERACCESS=
TWITTERACCSECRET=
SPOTIFY=
SPOTIFYSECRET=
- Fill in with your API keys
- Change playlist ID
- Run!
Nothing right now - although I do probably need to prettify my code.