Skip to content

vantrn/Spotify-Song-Recommender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎧 Spotify AI Song Recommender

This project uses the Spotify Web API and a simple AI model to recommend songs similar to those you already love. It fetches your top tracks, analyzes their audio features, and finds others that match your musical taste using cosine similarity.


πŸš€ Features

  • πŸ” Spotify OAuth login to access your top tracks
  • πŸ“Š Uses audio features like energy, valence, and danceability
  • 🧠 AI-powered recommendations using cosine similarity
  • 🌐 Flask web interface that displays song recommendations as clickable Spotify links

πŸ“¦ Tech Stack

  • Python
  • Flask (for web interface)
  • Spotipy (Spotify Web API wrapper)
  • Pandas, NumPy
  • Scikit-learn (for scaling and similarity calculations)

πŸ”§ Setup Instructions

1. Clone the Repo

git clone https://github.com/yourusername/spotify-ai-recommender.git
cd spotify-ai-recommender

2. Install

pip install -r requirements.txt

3. Register a Spotify App

Go to the Spotify Developer Dashboard and: Click Create an App Set Redirect URI to: http://localhost:5000/callback Copy your Client ID and Client Secret

4. Configure app.py

Open app.py and replace:

SPOTIPY_CLIENT_ID = 'your_client_id'
SPOTIPY_CLIENT_SECRET = 'your_client_secret'
app.secret_key = 'your_secret_key'

5. Run the app

python app.py

and then go to your browser and go to

http://localhost:5000

About

Uses Spotify API, Python, and Flask to recommend a user new songs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages