Download your Spotify playlists
MIT License
A lightweight tool that uses Spotify and Youtube to downloads tracks from any Spotify playlist to the user's local Music folder as mp3 files.
spotitube is a command-line program to download mp3 files of tracks in user Spotify playlists. It is not platform specific, and will run on Mac OS X, Windows, and Linux. It is released on public domain, so you can modify, redistribute, and use freely.
brew install ffmpeg
Create a conda environment with the proper libraries by running conda env create -f env.yml
in the root directory.
Go to your Spotify Playlist, right click, Share, copy URI:
To access user and public playlists, Spotify requires you to use their API which gives you a unique Client Key and a Client Secret Key relevant only to YOUR Spotify account.
$ python main.py -u USERNAME -k KEY_FILE -u URI
key.txt
SPOTIFY-C: [Spotify Client Key]
SPOTIFY-CS: [Spotify Client Secret Key]
$ python main.py -h
usage: main.py [-h] [-n USERNAME] [-k KEY_FILE] [-u URI] [-a AUDIO_QUALITY]
required arguments:
-n USERNAME, --username USERNAME
Username
-k KEY_FILE, --key-file KEY_FILE
Read Spotify client/secret keys from text file
-u URI, --uri URI Spotify playlist URI
optional arguments:
-h, --help show this help message and exit
-a AUDIO_QUALITY, --audio-quality AUDIO_QUALITY
Audio bitrate (128, 160, 192, 256*, 320 kbit/s)