Skip to main content

A package to get the track id's/names of your songs

Project description

Downloads

Track Retriever

Built to make it easier for people to work with the tracks in their Spotify playlists

Prerequisites

I assume that you have already made a Spotify project, if not you can do that here

You'll need your: username, client_id, client_secret, redirect_uri and userId 

Installing

pip install trackRetriever

Functions

I made getPlaylistIds and get_playlist_tracks as helpers for getTracks but you are more than welcome to use them

getTracks(username, client_id, client_secret,redirect_uri,getNames = False)

All the parameters should be input as string except getNames
When getNames is set to True getTracks will return a list of the names of the tracks in your playlists
When getNames is set to False getTracks will return a list of the track id's of the tracks in your playlists 
getPlaylistIds(playlists)

This will get the playlist id's of your playlists 
playlists = sp.user_playlists(userId) *userId is not your username* 
get_playlist_tracks(userId, playlist_id,sp)

sp is the spotify object created by spotipy.Spotify(auth=token)
playlist_id is the id of the playlist you want to retrieve the tracks for 

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 trackRetriever, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size trackRetriever-1.0.1-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size trackRetriever-1.0.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page