Spotify Downloader is a app that download your the spotify playlist, convert all musics to mp3 and write the tag3d. This was created only for educational use.
- Linux / Windows (tested on Debian)
- Python Modules: youtube_dl, beautifulsoup4, mutagen, spotipy
- ffmpeg
Install all Python modules:
pip3 install youtube_dl beautifulsoup4 mutagen spotipy
aptitude install ffmpeg
Create the download and tmp folders
mkdir downloads tmp
Configure your credentials. Edit the file spotify.py
os.environ["SPOTIPY_CLIENT_ID"] = ''
os.environ["SPOTIPY_CLIENT_SECRET"] = ''
os.environ["SPOTIPY_REDIRECT_URI"] = 'http://yourredirectURI'
spotify.retrievePlaylists("SPOTIFYUSERNAME")
youtube.getMusics('YOURPLAYLIST')
Edit the file spotify.py
NOTE: The first time when you run the script will be ask to you the REDIRECT URI. Just paste the URI returned from the given URI.
python spotify.py