Loading...
How-To's

How to Download Music from Spotify to Linux, Mac, Windows PC

How to Download Music from Spotify to Linux, Mac, Windows PC

Spotify is one of the best podcast, audio, and video streaming service out there. There are millions of users worldwide who love Spotify to listen to music. But however, this service is not available in every country, so it’s a bit bad fact that every user can’t take advantage of it. If you are one of those, searching ways to get around this issue then this guide will help you. Can’t listen to music on Spotify? Don’t worry now as today I will tell you how to download music from Spotify directly to your PC. No matter what platform you’re using, with the help of this guide, you will be able to easily download Spotify songs to Windows, Linux, and Mac PC.

There is a command line tool available which you can use to easily download songs from Spotify. The tool’s name is Spotify-Downloader and it is written in Python can download Spotify songs using a Spotify URL or its name. In addition to that, it can also download a song from YouTube and then automatically add the corresponding meta tags like album, artist, cover, year, genre, etc., pretty easily. Although, it requires numerous dependencies to be installed on your PC in order to work, once you get it done it will be usable for your life time. Just a one-time effort that will let you enjoy Spotify music as long as you want.

How to Download Music from Spotify to Linux, Mac, Windows PC?

Spotify Downloader let’s see download songs using Spotify URL. And not only a single song but if you want to download multiple songs using a less than you can also do that. This tool is very well capable of handling that kind of situations too. You can supplier list of songs to it through a file and file download them all for you. And the best part is that it adds the song metadata or ID3 tags automatically from the Spotify. If you are a songs lover then I am sure you are going to love this tool for its simplicity. After downloading songs from Spotify, you can play them in your favorite music player. I would recommend you to use GOM Audio: a music player with sync lyrics feature. And if you are on Linux, then Amarok is a very good choice.

Spotify Downloader works from command line. And there’s just a simple Python command you need to execute to download songs from Spotify. Before starting I would like to make clear that this tool required Python 3. So, if you want the smooth functionality of this tool then upgrade Python. Next, make sure if the Pip3 command is working and if it’s not, then run “python3 get-pip.py” from the terminal. After all set, please go through the following steps to set up Spotify Downloader. Here I will be explaining the process for Linux PC. In my case, I am using Kali Linux with KDE desktop. But, the process is very much identical to other platforms as well.

Step 1: Download the repository of Spotify Downloader from GitHub as ZIP file and extract it. After that, open the extracted folder and then locate the “spotdl.py” file. Also, open the command prompt or terminal in the same directory.

open terminal

Step 2: Now, there are some dependencies to be installed. So, run the following command.

pip3 install -U -r requirements.txt

pip install dependencies for spotify downloader

And after completion of this, run this command to install FFmpeg. If you are using windows PC, then you can install FFmpeg from this link. Copy ffmpeg.exe from “ffmpeg-xxx-winxx-static\bin\ffmpeg.exe” to PATH (usually C:\Windows\System32) or just place it in the root directory extracted from the above step.

sudo apt-get install ffmpeg

FFmpeg install

Step 3: To download Spotify songs to your PC, run this command. After that, it will download the song for you and convert it to mp3 and apply all the ID3 tags. By default, it will place the downloaded songs to the Music folder in the code base directory. To download a song, you can specify Spotify URL of the song or you can manually type song and artist name. See this:

python3 spotdl.py --song "Name of song" or python3 spotdl.py --song "Spotify URL"

Spotify song downloaded

This is how you can easily download music from Spotify to Linux, Mac, Windows PC. And not only this, there are some other features available in this tool. You can look for other switches to use with the main command. For example, you can use –list switch to download songs from a list stored in a file. Or, you can also download songs to a custom location using –file switch. You can see them all on its GitHub repository’s description page. And finally, after downloading high-quality songs, you can enjoy listening to them in your favorite music player.

spotify song in music player

Bottom Line:

At first, I didn’t believe that it is possible to download songs from Spotify. Then, I came across this Spotify Downloader and it worked like a charm and I was amazed at its performance. I found it to be worth sharing so I wrote this detailed guide about how to download music from Spotify to Linux, Mac, Windows PC. So, if you have good hands on command line tools then you can try out this and share what do you think.