A simple python api for spotify. Has support for searching songs, artists, and albums, as well as creating personal playlists.
- Search tracks, artists, and albums
- Create playlists and add tracks to it
- All authentication handled by backend
- Watch https://youtu.be/xdq6Gz33khQ to make your own client id, secret id, and user id and paste it into the variables file
- To retrieve information about an artist, call the get_artist() function and pass in the id of the artist which can be retrieved from the spotify app.
- To retrieve information about an album, call the get_album() function and pass in the id of the album which can be retrieved from the spotify app.
- To retrieve information about a track, call the get_track() function and pass in the name of the track.
- To create a playlist, call the create_playlist() function and pass in values for the name and description for the playlist
- To add tracks to playlist, call the add_tracks_to_playlist() function and pass in the playlist id from the create_playlist() function, and pass in a list of song uris from spotify
- Track results may return the wrong track due to the simplicity of the parseing of the get_track() results.