What this project does is that, first it asks for spotify authentication from the currently logged in spotify account.
After authenticating spotify access, it asks for a date in a YYYY-MM-DD format as follows:
Afterwards it goes to the official Spotify Billboard listing for the period of that date:
It then scrapes the names of the songs along with their artists in a Python list and then uses the Spotipy library to sook up the URIs(used by spotify to uniquely identify each song) for all of the songs:
and if the URI for that songs are depricated, it says that song wasnt found on spotify:
It then creates a playlist from the currently logged in spotify account and adds all the songs from the billboard list:
Steps to to run this program on a different code:
- Download the main.py file and the token.txt file into a single folder
- Go to Spotify for developers site and get the required keys such as access token, clientID, client secret key etc. and use them in the main and token files
- Run your code