Skip to content

Tsaousidis/scraper-api-billboard-to-spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎡 Scraper API - Billboard to Spotify 🎧

Ξ‘ 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.


✨ Features

  • πŸ“… 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

πŸš€ How to Use

  1. Clone this repository
  2. 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
  3. Run the script:
    python main.py
  4. Enter a date in format YYYY-MM-DD when prompted
  5. Check your Spotify account for the new playlist!

πŸ–₯ Requirements

  • Python 3.7+
  • spotipy
  • beautifulsoup4
  • requests
  • rapidfuzz

Install dependencies:

pip install -r requirements.txt

πŸ›  Technologies Used

  • Python
  • Spotify Web API via spotipy
  • BeautifulSoup for web scraping
  • Requests for HTTP calls
  • dotenv for environment management
  • rapidfuzz for fuzzy matching

πŸ™‹β€β™‚οΈ Author

πŸ‘¨β€πŸ’» Created by Tsaousidis

πŸŽ‰ Have fun exploring music through time! Let me know your thoughts and suggestions! πŸŽ‰

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages