This program enables you to download entire Spotify playlists as MP3 files quickly and efficiently.
- Multi-threaded Downloads: Download multiple songs simultaneously by configuring the number of threads, speeding up the process for large playlists.
- Customizable Threads: Adjust the number of concurrent downloads based on your system's resources.
- Metadata Support: Each MP3 file is saved with proper metadata (title, artist, album, etc.) for better organization.
- Spotify API credentials (Client ID and Client Secret). https://developer.spotify.com/
- Internet connection.
- Required dependencies (detailed in the setup instructions below).
The following Python libraries are required to run this program:
spotipy
yt-dlp
mutagen
ffmpeg-python
python-dotenv
Run the following command to install the required libraries:
pip install -r requirements.txt
FFmpeg: Required for processing and converting audio files:
On macOs (using Homebrew)
brew install ffmpeg
On Linux (Debian/Ubuntu):
sudo apt update
sudo apt install ffmpeg
On Windows:
- Download the FFmpeg executable from the official site: https://ffmpeg.org/download.html.
- Add FFmpeg to your system's PATH environment variable (refer to the official guide for instructions).
- Clone this repository.
- Configure Client Id, Client Secret, and Max Threads in .env file: Create a .env file in the same directory as your script and add the following variables
CLIENT_ID="your_spotify_client_id"
CLIENT_SECRET="your_spotify_client_secret"
MAX_THREADS=14 # Number of simultaneous downloads (adjust based on your PC's capability)
- Run the program and enjoy your MP3 downloads!