Skip to main content

A Python client for the Spotify Recommendations API.

Project description

Python client for the Spotify Recommendations API.


pip install music-recommender


from recommender.api import Recommender

recommender = Recommender()
recommender.artists = 'Johnny Cash'
recommender.genres = [
recommender.track_attributes = {
    'danceability': 1.0

recommendations = recommender.find_recommendations()
for recommendation in recommendations['tracks']:
    print("%s - %s" % (recommendation['name'], recommendation['artists'][0]['name']))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

music-recommender-1.0.5.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distribution

music_recommender-1.0.5-py2.py3-none-any.whl (3.5 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page