This project is a simple Spotify recommendation engine. It uses the Spotify API to search for a track and get recommendations based on that track.
Before running the code, make sure you have the following:
- Python installed on your system
- Spotify API credentials (client ID and client secret)
-
Clone the repository:
git clone https://github.com/your-username/spotify-recommendation-engine.git
-
Install the required dependencies:
pip install -r requirements.txt
- Open the code file
app.py
in a text editor. - Replace the
client_id
andclient_secret
variables with your own Spotify API credentials.
-
Run the code:
python recommendation_engine.py
-
Open your web browser and navigate to https://spotify-recommendation-engine.onrender.com/.
-
Enter the name of a track in the input field and click the "Submit" button.
-
The application will search for the track and display up to 5 recommended tracks based on the input track.
This application is deployed on Render and can be accessed at https://spotify-recommendation-engine.onrender.com/.
Please note that you need to deploy this application on your own Render account if you want to access it with your specific credentials.
To deploy the application on Render, follow these steps:
- Sign up for a Render account at https://render.com/.
- Create a new web service on Render.
- Set the GitHub repository as the source for the web service.
- Configure the environment variables
client_id
andclient_secret
with your Spotify API credentials. - Deploy the web service.
- Once the deployment is complete, you can access the application at the provided URL.
This code is released under the MIT License. Feel free to modify and use it according to your needs.