Create your playlist in seconds.
Explore the docs »
View Demo
.
Report Bug
.
Request Feature
This script helps you create a Spotify playlist of Billboard Hot 100 songs for a specific year. It retrieves song titles by webscraping Billboard's website and then searches for those songs on Spotify, adding them to a new playlist.
Python Spotify API
-
Install the required libraries:
-
Create a Spotify app and obtain your client_id, client_secret, and redirect_uri. You can do this by following the instructions here: https://developer.spotify.com/
-
Create a file named .env in the same directory as your script and add your Spotify credentials.
How it Works
-
The script asks the user for the desired year.
-
It constructs a URL for the Billboard Hot 100 chart for that year.
-
It uses the requests library to fetch the webpage content.
-
It uses Beautiful Soup to parse the HTML and extract the song titles.
-
It authenticates with the Spotify API using your credentials stored in the .env file.
-
It searches for each song title on Spotify and retrieves the corresponding URI.
-
It creates a new private playlist on your Spotify account.
-
Finally, it adds the retrieved song URIs to the newly created playlist.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
- Please also read through the Code Of Conduct before posting your first idea as well.
Distributed under the MIT License. See LICENSE for more information.
- Julian Pyrlik - ** - Julian Pyrlik - **