Generates song recommendations for Spotify playlists using K-Nearest-Neighbors and optionally VADER sentiment analysis. Version 5.4.5 is the final release; the library has been deactivated due to Spotify API changes in 2025. No longer maintained.
pip install spotify-recommender-api==5.4.5No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Authenticate with Spotify and get song recommendations for a given playlist.
Consider migrating to official Spotify Web API via spotipy library directly.
Upgrade to >=5.2.0 and remove manual token refresh logic.
Ensure the playlist is public or use your own authorized user's playlist with proper scopes.