Photo provided by

Have you ever thought about what makes up a hit song?

Could it be its lyrics? Its social media response? Or is it as simple as its duration?

In an attempt to answer these questions, I will develop a Twitter bot on Python that uses a random forest classification model to predict a song’s popularity based on social media sentiment, lyric analysis, streaming, and past Billboard chart data. I will be collecting social media data from Twitter through GetOldTweets3, lyric data from Genius using LyricsGenius, streaming data from Spotify through Spotipy, and past chart data from Billboard through


Punit Khiyara

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store