Skip to main content

A Python client for the Spotify Recommendations API.

Project description

Python client for the Spotify Recommendations API.

Install:

pip install music-recommender

Example:

recommender = Recommender()
recommender.artists = 'Johnny Cash'
recommender.genres = [
    'country',
    'party'
]
recommender.tunable_track_attributes = {
    'danceability': 1.0
}

recommendations = recommender.find_recommendations()
for recommendation in recommendations['tracks']:
    print("%s - %s" % (recommendation['album']['name'], recommendation['album']['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.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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