Ξ Python automation project that scrapes the Billboard Hot 100 chart for a user-specified date and creates a private Spotify playlist with the top 100 songs of that day.
- π Prompt user to select any historical date
- π§ Scrape Billboard's Hot 100 songs for that date
- π Search each song on Spotify
- π€ Use fuzzy matching to find the best match if song not found directly
- πΌ Automatically create a private playlist with the matching tracks
- Clone this repository
- Create a
.env
file with your Spotify API credentials:CLIENT_ID=your_spotify_client_id CLIENT_SECRET=your_spotify_client_secret REDIRECT_URI=your_redirect_uri
- Run the script:
python main.py
- Enter a date in format
YYYY-MM-DD
when prompted - Check your Spotify account for the new playlist!
- Python 3.7+
- spotipy
- beautifulsoup4
- requests
- rapidfuzz
Install dependencies:
pip install -r requirements.txt
- Python
- Spotify Web API via
spotipy
- BeautifulSoup for web scraping
- Requests for HTTP calls
- dotenv for environment management
- rapidfuzz for fuzzy matching
π¨βπ» Created by Tsaousidis
π Have fun exploring music through time! Let me know your thoughts and suggestions! π