This Python script allows you to download Spotify playlists by:
- Fetching playlist details using the Spotify API.
- Searching and downloading corresponding tracks from YouTube via
yt-dlp. - Converting them into MP3 files.
- Embedding correct metadata and album artwork with
eyed3.
- ✅ Download entire Spotify playlists as MP3.
- ✅ Automatically fetch metadata (title, artist, album).
- ✅ Embed Spotify album cover art into MP3s.
- ✅ Organize songs into a chosen save directory.
Make sure you have the following installed:
- Python 3.8+
- FFmpeg (required by
yt-dlp) - Spotify API credentials (guide here)
pip install spotipy yt-dlp eyed3 python-dotenv