spotify_assistant¶
A Python package that enriches spotify users’ music experience by allowing them to explore their listening trends via REST APIs implemented for Spotify developers.
There is one similar Python package, Spotipy that provides wrapper functions in Python for the Spotify API. This package contains a function for each possible API request, but does not combine any of these requests. Our aim is to create functions that combine multiple requests and provide additional insights for Spotify users.
Installation¶
$ pip install spotify_assistant
Usage¶
import spotify_assistant
credentials = {clientId:'xxxxxxxxxxxx', clientSecret: 'xxxxxxxxxxxx'}
RandomUser = User(credentials)
RandomUser.get_song_recommendations("Recommended Songs")
RandomUser.get_users_playlists_songs()
RandomUser.get_users_top_genres()
spotify_assistant.User.get_new_releases_by_continent("Asia")
Functions¶
get_users_top_genres(): Returns the top 5 genres of music that a user listens to and has saved in the “Your Music” library.get_song_recommendations(playlist_name, num_songs): Creates a playlist of recommended songs based on user’s top 3 artists.get_playlists_songs(playlists): Returns the songs saved in all the playlists, which are passed as a list to the function.get_new_releases_by_continent(continent, limit): Returns the new releases by continent
Contributing¶
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License¶
spotify_assistant was created by Caroline Tang, Julie Song, Jenit Jain, Chester Wang. It is licensed under the terms of the MIT license.
Credits¶
spotify_assistant was created with cookiecutter and the py-pkgs-cookiecutter template.