Skip to content

isotronic/top100-music-time-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Billboard to Spotify Playlist Generator

This Python script fetches the Billboard Hot 100 chart for a specified date and creates a private Spotify playlist containing the top 100 songs from that date.

Prerequisites

Getting Started

Installation

  1. Clone the repository:

    git clone https://github.com/isotronic/top100-music-time-mashine.git
  2. Navigate to the project directory:

    cd top100-music-time-mashine
  3. Install dependencies:

    pip install -r requirements.txt

Configuration

  1. Obtain Spotify API credentials by creating an application on the Spotify Developer Dashboard.

  2. Set the following environment variables:

    export SPOTIPY_CLIENT_ID=your_spotify_client_id
    export SPOTIPY_CLIENT_SECRET=your_spotify_client_secret
    export SPOTIPY_USER=your_spotify_username
  3. Adjust other parameters in the script as needed, such as the Spotify redirect URI and the scope.

Usage

  1. Run the script:

    python main.py
  2. Input the date you want to create a playlist for in the format YYYY-MM-DD when prompted.

  3. The script will fetch the Billboard Hot 100 chart for the specified date, search for corresponding tracks on Spotify, and create a private playlist with those tracks.

Notes

  • Ensure that your Spotify account has the necessary permissions for playlist modification (playlist-modify-private scope).

  • The generated playlist will be named based on the chosen date, e.g., "YYYY-MM-DD Billboard Top 100."

Acknowledgments

  • This project uses Spotipy for Spotify API interaction and BeautifulSoup for web scraping.

About

This Python script fetches the Billboard Hot 100 chart for a specified date and creates a private Spotify playlist containing the top 100 songs from that date.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages