Convert entire Spotify playlists to MP3 audio files at once - No Spotify Premium required!
This tool utilizes the Spotify API to fetch playlist tracks and yt_dlp library to download audio from YouTube.
-
Head over to the Spotify Developer Dashboard.
-
Log in or sign up for a Spotify account.
-
Create an app and obtain your Client ID and Client Secret.
-
Insert them into the
config.json
file:"client_id": "YOUR_CLIENT_ID_HERE", "client_secret": "YOUR_CLIENT_SECRET_HERE"
-
Set the Redirect URI to
http://localhost:8888/callback
in your app settings.
-
Clone/download this repository.
-
Navigate to the directory.
-
Install dependencies using pip:
pip install -r requirements.txt
-
Open
main.py
. -
Adjust the output directory (line 9):
"path": = "D:/Your/Path/Here"
-
Run
main.py
:python main.py
-
Follow terminal instructions to authenticate with Spotify.
-
The script fetches and downloads playlist tracks.
-
MP3 files will be saved in the specified directory.
For educational purposes only. May infringe on Spotify and YouTube terms of service.
Use at your own risk. I take no responsibility for misuse or violation of terms.
As this script relies on the YouTube Search, the output may be different from what you expected and the quality may vary.
Why did I make this?
I was sick of only being able to listen to music while connected to the internet and not being able to skip freely, aka all the problems Spotify Premium would fix. But paying over 100€ a year just for that? Nah. So I did what every programmer does best and spent hours coding a solution for a problem that could just be fixed by paying 10 bucks a month. (Actually, It didn't even take me that long and 10€ a month is a lot, so I benefit in every way xD)
How do I use the project?
Back then, I mainly used it to listen to music freely on the go, but now I actually rather use it to get my Spotify Playlists into rekordbox