Skip to content

A small tool that converts entire spotify playlists into mp3 files

Notifications You must be signed in to change notification settings

CodeModeYT/spotify2mp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify2MP3 Converter

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.

Setup Instructions

Spotify API Setup

  1. Head over to the Spotify Developer Dashboard.

  2. Log in or sign up for a Spotify account.

  3. Create an app and obtain your Client ID and Client Secret.

  4. Insert them into the config.json file:

    "client_id": "YOUR_CLIENT_ID_HERE",
    "client_secret": "YOUR_CLIENT_SECRET_HERE"
  5. Set the Redirect URI to http://localhost:8888/callback in your app settings.

Script Setup

  1. Clone/download this repository.

  2. Navigate to the directory.

  3. Install dependencies using pip:

    pip install -r requirements.txt
    
  4. Open main.py.

  5. Adjust the output directory (line 9):

    "path": = "D:/Your/Path/Here"

Usage

  1. Run main.py:

    python main.py
    
  2. Follow terminal instructions to authenticate with Spotify.

  3. The script fetches and downloads playlist tracks.

  4. MP3 files will be saved in the specified directory.

Disclaimer

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.

Notes

As this script relies on the YouTube Search, the output may be different from what you expected and the quality may vary.

Backstory

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

About

A small tool that converts entire spotify playlists into mp3 files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages