This Flask web application interacts with the Spotify API to perform various tasks related to your playlists, including finding new song recommendations and finding the existing songs in your playlists according to your mood.
Follow these steps to set up the application and obtain the required credentials:
Visit the Spotify Developer Dashboard and log in or create a new account.
- Click on the "Create an App" button.
- Fill in the required information for your new app.
- For the Redirect URI you can use
http://localhost:5000/callback
. - Accept the terms and conditions.
- Once your app is created, go to the app's dashboard.
- Note down the
CLIENT_ID
,CLIENT_SECRET
andREDIRECT_URI
from the app settings.
Create a .env
file in the project's root directory and add the following lines:
CLIENT_ID=<your_client_id>
CLIENT_SECRET=<your_client_secret>
REDIRECT_URI=<your_redirect_uri>
pip install -r requirements.txt
python app.py
Open your web browser and go to http://localhost:5000/ to access the app.