Skip to content

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.

Notifications You must be signed in to change notification settings

julianpyrlik/Spotify-Playlist-Creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Spotify Playlist Creator

Create your playlist in seconds.

Explore the docs »

View Demo . Report Bug . Request Feature

Downloads Contributors Issues License

Table Of Contents

About The Project

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.

Built With

Python Spotify API

Getting Started

Installation

  1. Install the required libraries:

  2. 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/

  3. Create a file named .env in the same directory as your script and add your Spotify credentials.

How it Works

  1. The script asks the user for the desired year.

  2. It constructs a URL for the Billboard Hot 100 chart for that year.

  3. It uses the requests library to fetch the webpage content.

  4. It uses Beautiful Soup to parse the HTML and extract the song titles.

  5. It authenticates with the Spotify API using your credentials stored in the .env file.

  6. It searches for each song title on Spotify and retrieves the corresponding URI.

  7. It creates a new private playlist on your Spotify account.

  8. Finally, it adds the retrieved song URIs to the newly created playlist.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

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.

License

Distributed under the MIT License. See LICENSE for more information.

Authors

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages