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.
Source Distribution
Built Distribution
Close
Hashes for music_recommender-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3c1be99e3efa488691da42f9db3976f4edb9656aa3bf0f59c6b3e55e3e537f8 |
|
MD5 | 1fb593090d8da99015cac87d210305dd |
|
BLAKE2b-256 | 0fcabc67ff12d263e99537554ded70e236cfe2eda2ecfd0ff475d03fb1776b9c |