A python script that scrapes the content of Billboard Charts for a given date and creates a Spotify playlist with these songs. Ideal for a birthday gift to your friends.
Developed during Angela Yu's class 100 Days of Code.
- Create a virtual environment:
python -m venv myproject_env - Activate the virtual environment
- Install dependencies:
pip install -r requirements.txt
Python version 3.12.3
- You need a Spotify account for this
- Fork the Github project and clone the forked repository to your local machine using the
git clone command - Create a .env file in the project to store your environmental login values
- Go to the Spotify developer dashboard, create an app and copy the Client ID and Client Secret to your .env file
- Use the Spotipy documentation to authenticate your project access to your Spotify. You will need to call the get_token function for the first time that you do this:
token = get_token(CLIENT_ID, CLIENT_SECRET)
print(token)