This is a reddit bot that will search for any Eminem song or album and give you the link and some statistics for a song pulled from the Spotify API and Youtube Data API v3 as the reply message. This bot is currently only monitoring r/Eminem, r/Music, and r/hiphopheads.
I love Reddit, I love Eminem and I love Python! So I combined all of them to program an account to reply with the data from Spotify and YouTube of any Eminem songs :)
- PRAW - Framework build on top of Reddit API.
- Spotipy - Library for the Spotify Web API.
- google-api-python-client - Library to acess Youtube Data API.
Simply comment '!song' or '!album' followed by the song or album you would like to search anywhere on r/Eminem, r/Music, and r/hiphopheads. For example:
!song Survival
or !album Kamikaze
You can learn more about the bot and the Spotify analysis here.
- Install required packages by
pip install -r requirements.txt
. PRAW
,spotipy
,google-api-python-client
are the main libraries used.- Must have a reddit account. Visit the apps page to get your
client_id
andclient_secret
. - Must also have an Spotify account to get the
client_id
andclient_secret
for spotify as well. - Please enter the credentials in the praw.ini file.