spotDL matches Spotify tracks and playlists to YouTube sources and saves audio with album art, lyrics, and metadata. It runs from the terminal with optional Docker or a limited web mode.
Overview
spotDL is a command-line utility for pulling music listed on Spotify without streaming it directly from Spotify’s servers. Given Spotify URLs for songs, albums, artists, or playlists, it locates corresponding tracks on YouTube, then downloads the audio files locally.
Downloaded files can embed Spotify-derived metadata, cover images, and lyrics. Operations beyond plain download include saving metadata alone, printing shareable URLs, syncing a folder to playlist changes, refreshing tags on existing files, and maintaining sync state in sidecar files.
The tool depends on FFmpeg for transcoding and recommends Deno when certain YouTube videos require it. Install options include Python packages, standalone executables, container images, and platform-specific packages.
A lightweight web mode exposes a browser UI for single-track downloads with reduced functionality compared to the CLI. Authors note that users are responsible for compliance with copyright when acquiring audio this way.
Key features
- Spotify URL playlist downloads
- YouTube-sourced audio files
- Embedded metadata and album art
- Lyrics attachment when available
- Playlist directory sync mode
- Metadata-only save operation
- Docker and compose workflows
- Limited web download interface
Use cases
- Offline personal playlists
- Local music library backups
- Keeping folders aligned with playlists
- Re-tagging existing audio files
- Self-hosted download containers