Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A Python client for the Spotify Recommendations API.

Project description

Python client for the Spotify Recommendations API.

Install:

pip install music-recommender

Example:

from recommender.api import Recommender

recommender = Recommender()
recommender.artists = 'Johnny Cash'
recommender.genres = [
    'country',
    'party'
]
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.

Files for music-recommender, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size music_recommender-1.0.5-py2.py3-none-any.whl (3.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size music-recommender-1.0.5.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page