Skip to content

webcrawls/spotify-playlist-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify-playlist-scraper

A handful of Python scripts that can be used to scrape a personal Spotify account's playlist information.

Installation

This repo should work on any platform.

Ensure Python 3.11 is installed (presumably later versions will work), and git clone this repository somewhere on your computer.

Run the following commands in the root directory:

  • python -m venv env
    • On *nix: source env/bin/activate
    • On Windows: source env/Scripts/activate
  • pip install -r requirements.txt

Usage

Ensure you have source'd the Python environment, and run main.py:

python main.py

# Only download playlists matching a glob/string:
python main.py --only Favs
python main.py --only *'s Playlist

The script will authenticate a Spotify application (which you should create and provide the credentials in a .env file, see .env.EXAMPLE), which will iterate over your playlists and save them to .json files in the playlists/ folder.

Currently, the script saves:

  • the name of the track/episode
  • the artist
  • the spotify URL
  • the custom playlist image URL, if any

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages