Skip to content

Python script to create a Spotify playlist from a music producer's name, using Genius API and Spotify API

Notifications You must be signed in to change notification settings

nicolas-chabanis/beatmaker-playlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Producer Playlist

Python script to create a Spotify playlist containing every song produced by a specified artist.

Installation

Clone the repository and install dependencies in a virtual environment

python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt

No the code is ready to run

Usage

  1. You first have to create an access to the Genius and Spotify APIs. Fill in the secret_keys.py file with your Genius Access Token and your Spotify Client ID/Secret ID/Redirect URL. Also fill in your Country Code
  2. Unfortunately you cannot search directly for a specific artist with the Genius API. So the script takes as input a track which was produced by the target artist. To create a producer playlist, you must fill search_term with a song name (Artist name + Track Name works well) where the target producer is the first one listed in the "Produced by" credits on Genius.
  3. Launch the notebook with a working python environment (I use VS Code and a Conda environment for example)
  4. The script will open the browser and ask for permission to create a Spotify Playlist and modify it. You just have to copy/paste the entire url from your browser to the prompt
  5. Playlist is then created. Sometimes a song isn't found, either because it's simply not on Spotify or because the Genius title and the Spotify title are too far apart. Those songs are listed so you can add them manually

About

Python script to create a Spotify playlist from a music producer's name, using Genius API and Spotify API

Resources

Stars

Watchers

Forks

Packages

No packages published