A Web based music recommender written in python.
We built our own music recommendation system using a song dataset. It integrates with the Spotify API to fetch and play songs directly within our web app.
- Search Songs of your choice.
- Get recommendation based on your listening.
-
Download and Extract the zip file.
-
Create a Spotify developer account (here).
-
Create an app (create) in the dashboard
- Add a REDIRECT_URL (mandatory)
- Tick the Web API checkbox
-
After creating the app get the credentials
- CLIENT_ID
- CLIENT_SECRET
-
Open the
api.pyfile and paste these credentialsself.CLIENT_ID = " " self.CLIENT_SECRET = " "
-
Add the REDIRECT_URL in the code as well
api.pyself.REDIRECT_URI = " "
-
Open any of the spotify logged in device. Make sure the device is active as it will play songs on that device.
-
Now run
main.pypython main.py




