Original code written by T. Hoang (found at https://github.com/LotusDeath69/spotifyPlaylistDownloader)
- This code was written and ran in Windows 10; other OS compatibility is unknown.
- This code was tested with Latin characters in mind. Although it should work with other writing systems, compatibility is not guaranteed.
Downloads a Spotify playlist
Python (preferably 3.9 or above)
Run pip install -r requirements.txt
in a terminal to install the package requirements.
chromedriver
ffmpeg
Spotify token
Spotify playlist id: (i.e. 0Hx4aQ2xTb4TKl5Z56DJh0)
Download chromedriver
and ffmpeg
and place the executables files in the same folder as scrapper.py.
Input Spotify API token, playlist id, and country market in the Variables Section.
SPOTIFY_PLAYLIST_ID = "Playlist ID"
SPOTIFY_API_KEY = "token"
SPOTIFY_MARKET_LOCATION = "CA"
(Click here or go to ID_INSTRUCTIONS.md
for help on getting id's.)
Run the script by typing python scrapper.py
in the terminal
- Selenium (Automated Chromium Bot)
- YT-DLP (Youtube Video Downloader)
- Mutagen (ID3/Metadata Editor)
- requests (Spotify API calls)
- JSON (Storing API data with JSON)
- IO Bytestream (For album covers)
- Playlist Persistance
- JSON file to store playlist data
- YT-DLP download
- Add ID3 data to mp3 using mutagen
- Stop YT-DLP from downloading files that are already downloaded
- Add album cover to ID3 data
- Equaliser for equal volume songs
I will not be monitoring this repo, the easiest way to contribute would be to fork this repository.
Distributed under the MIT License. See LICENSE
for more information.