Music from Spotify on Linux

You can download music from spotify albums on Linux easily, with spotDL

spotDL finds songs from Spotify playlists on YouTube and downloads them - along with album art, lyrics and metadata.

Tested on Ubuntu 22.04 GNU/Linux. Info derived from:
https://github.com/spotDL/spotify-downloader

It doesn't seem to work on Ubuntu 24.04

Install spotdl & FFmpeg

Ubuntu 22.04

#sudo apt install pip-check-reqs python3-full # this will install python-pip requirements also, in case you don't have them installed yet on your system sudo pip install spotdl sudo apt install ffmpeg

Ubuntu 24.04

#sudo apt install pip-check-reqs python3-full # this will install python-pip requirements also, in case you don't have them installed yet on Ubuntu 24.04 pipx install spotdl # pipx creates a virtual environment for you so that there is no conflict of dependency versions # Note: '/root/.local/bin' is not on your PATH environment variable. These apps will not be globally accessible until your PATH is updated. Run `pipx ensurepath` to automatically add it, or manually modify your PATH in your shell's config file (i.e. ~/.bashrc). sudo apt install ffmpeg


If you have issues with an older spotdl installed elsewhere (for instance, /home/xavi/.local/bin/spotdl ) and that old install is not adapted to Ubuntu 24.04, then you can remove the old installation, and adapt the default expected path with a symlink to the new location within the virtual environment:

rm /home/xavi/.local/bin/spotdl ln -s /home/xavi/.local/share/pipx/venvs/spotdl/bin/spotdl /home/xavi/.local/bin/spotdl

Usage

spotdl [urls]


You can download complete Albums, Lists and single songs also.

Awesome!

Example for an specific album:
https://open.spotify.com/album/5ntughoDsChgReXpBe8v6F

SpotDL Ginesta 2019


Same worked with publics lists such as the ones shown here:
https://open.spotify.com/user/r3uh31kbmv3ledvfqw4ygc9m1/playlists





Alias names for this page:
Music | spotube | spotify