Skip to content

A Python script to create a Spotify playlist based on Billboard Hot 100 songs for a specific date.

Notifications You must be signed in to change notification settings

asultanli/billboard-to-spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Billboard Playlist Creator

A Python script to create a Spotify playlist based on Billboard Hot 100 songs for a specific date.

Overview

This script utilizes BeautifulSoup and Spotipy to scrape Billboard Hot 100 songs for a given date and create a Spotify playlist with those songs.

Features

  • Fetches Billboard Hot 100 songs for a specified date.
  • Searches for each song on Spotify and retrieves its URI.
  • Creates a private Spotify playlist with the fetched songs.

Prerequisites

Before you begin, ensure you have met the following requirements:

Getting Started

  1. Clone the repository:

    git clone https://github.com/asultanli/spotify-billboard-playlist.git
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Create a .env file in the project root and add your Spotify application credentials:

    CLIENT_ID=your_client_id
    CLIENT_SECRET=your_client_secret
    USER_ID=your_spotify_username
  4. Run the script:

    python main.py

Usage

  1. Run the script and follow the prompts.
  2. Visit the provided authorization URL in your browser and authorize the app.
  3. Enter the authorization code back in the terminal.
  4. Input the date for the Billboard Hot 100 songs.
  5. The script will create a private Spotify playlist with the fetched songs.

Author

  • Sultanli Aykhan

About

A Python script to create a Spotify playlist based on Billboard Hot 100 songs for a specific date.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages