Skip to content

MohilKadakia/spotifyPlaylistDownloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotifyPlaylistDownloader

Original code written by T. Hoang (found at https://github.com/LotusDeath69/spotifyPlaylistDownloader)

Disclaimers:

  • 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.

Description:

Downloads a Spotify playlist

Prerequisite for v2:

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)

How to Use:

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

Built Using:

  • 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)

Additions:

  • 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

Contributing

I will not be monitoring this repo, the easiest way to contribute would be to fork this repository.

License

Distributed under the MIT License. See LICENSE for more information.

Languages

  • Python 100.0%