- Downloads songs from YouTube in an MP3 format by using Spotify's HTTP link.
- Can also download a song by entering its artist and song name (in case if you don't have the Spotify's HTTP link for some song).
- Automatically fixes song's meta-tags which include:
- Title
- Artist
- Album
- Album art
- Album artist
- Genre
- Track number
- Disc number
- Release date
- And some more...
- Works straight out of the box and does not require to generate or mess with your API keys.
- Arch Linux Spotify
- Install Spotify On Linux
- Linux Spotify App
- Spotify Linux Download
- Spotify Linux Client
Download spotify-client linux packages for CentOS, DEB Universal, Fedora, Mint, PCLinuxOS. Nux Dextop x8664 Third-Party: spotify-client-1.0.47.13.gd8e05b1f-1.el7.nux.x8664.rpm: Spotify music player native client. Spotify-client linux packages: deb, rpm ©2009-2020 - Packages Search for Linux. In this quick post, we shall see how to quickly install Spotify in Ubuntu 18.04, 20.04 and other Debian based distributions such as Linux Mint, Elementary OS, Bodhi etc. Method 1: Install Spotify in Ubuntu using Snap Package. Spotify has released a Snap package recently. Which means now Spotify can be easily installed in any Linux distribution.
That's how your Music library will look like!
Reporting Issues
- Search for your problem in the issues section before opening a new ticket. It might be already answered and save us time.
? - Provide as much information possible when opening your ticket.
Installation & Usage
- This version supports Python 3, Python 2 compatibility was dropped because of the way it deals with unicode. If you need to use Python 2 though, check out the
python2
branch. - Note:
play
andlyrics
commands have been deprecated in the current brach since they were not of much use and created unnecessary clutter. You can still get them back by usingold
branch though.
Debian, Ubuntu, Linux & Mac
![Spotify deb Spotify deb](/uploads/1/3/3/9/133948114/992100713.png)
You'll also need to install FFmpeg for conversion (use
--avconv
if you'd like to use that instead):Linux:
sudo apt-get install ffmpeg
Mac:
brew install ffmpeg --with-libmp3lame --with-libass --with-opus --with-fdk-aac
![Spotify Spotify](/uploads/1/3/3/9/133948114/657381151.png)
If it does not install correctly, you may have to build it from source. For more info see https://trac.ffmpeg.org/wiki/CompilationGuide.
Windows
Assuming you have Python 3 already installed and in PATH.
- Download and extract the zip file from master branch.
- Download FFmpeg for Windows from here. Copy
ffmpeg.exe
fromffmpeg-xxx-winxx-staticbinffmpeg.exe
to PATH (usually C:WindowsSystem32) or just place it in the root directory extracted from the above step. - Open
cmd
and typepip install -U -r requirements.txt
to install dependencies.
Instructions for Downloading Songs
- For all available options, run
python spotdl.py --help
.
Download by Name
For example
- We want to download Hello by Adele, simply run
python spotdl.py --song 'adele hello'
. - The script will automatically look for the best matching song and download it in the folder
Music/
placed in the root directory of the code base. - It will now convert the song to an mp3 and try to fix meta-tags and album-art by looking up on Spotify.
Download by Spotify Link (Recommended)
For example
- We want to download the same song (i.e: Hello by Adele) but using Spotify Link this time that looks like
http://open.spotify.com/track/1MDoll6jK4rrk2BcFRP5i7
, you can copy it from your Spotify desktop or mobile app by right clicking or long tap on the song and copy HTTP link. - Run
python spotdl.py --song http://open.spotify.com/track/1MDoll6jK4rrk2BcFRP5i7
, it should download Hello by Adele. - Just like before, it will again convert the song to an mp3 but since we used a Spotify HTTP link, the script is guaranteed to fetch the correct meta-tags and album-art.
Download multiple songs at once
For example
- We want to download
Hello by Adele
,The Nights by Avicci
and21 Guns by Green Day
just using a single command.
Let's suppose, we have the Spotify link for only
Hello by Adele
and 21 Guns by Green Day
.No problem!
- Just make a
list.txt
in the same folder as the script and add all the songs you want to download, in our case it is
(if you are on Windows, just edit
list.txt
- i.e C:Python36spotify-downloader-masterlist.txt
)- Now pass
--list=list.txt
to the script, i.epython spotdl.py --list=list.txt
and it will start downloading songs mentioned inlist.txt
. - You can stop downloading songs by hitting
ctrl+c
, the script will automatically resume from the song where you stopped it the next time you want to download the songs present inlist.txt
. - Songs that are already downloaded will be skipped and not be downloaded again.
Download playlists
- You can copy the Spotify URL of the playlist and pass it in
--playlist
option.
For example
python spodl.py --playlist https://open.spotify.com/user/camillazi/playlist/71MXqcSOKCxsLNtRvONkhF
- The script will load all the tracks from the playlist into
<playlist_name>.txt
- Then you can simply run
python spotdl.py --list=<playlist_name>.txt
to download all the tracks.
Download playlists by username
- You can also load songs using Spotify username if you don't have the playlist URL. (Open profile in Spotify, click on the three little dots below name, 'Share', 'Copy to clipboard', paste last numbers into command-line:
https://open.spotify.com/user/0123456790
) - Try running
python spotdl.py -u <your_username>
, it will show all your public playlists. - Once you select the one you want to download, the script will load all the tracks from the playlist into
<playlist_name>.txt
. - Run
python spotdl.py --list=<playlist_name>.txt
to download all the tracks.
Specify the target directory
If you don't want to download all the songs to the
Music/
folder relative to the spotdl.py
script, you can use the -f
/--file
option. E.g. python spotdl.py -s 'adele hello' -f '/home/user/Music/'
. This works with both relative and absolute paths.Running tests
Obviously this requires the
pytest
module to be installed.Disclaimer
Downloading copyright songs may be illegal in your country. This tool is for educational purposes only and was created only to show how Spotify's API can be exploited to download music from YouTube. Please support the artists by buying their music.
License
The MIT License
Introduction: How to Install Spotify Onto Ubuntu/Debian/Linux
Spotify is all the rage now on Macs and PCs alike but Linux is not left out in the rain completely. So here is how to get Spotify on Ubuntu/Debian/Linux. First the Premium method.
Step 1: Two Methods
Arch Linux Spotify
There are two ways to do this, one works with the free account and one is for Premium users only. To save time I have combined the two per step.
Premium
1. Okay first we need to add
“deb http://repository.spotify.com stable non-free”
To /etc/apt/sources.list
1A. to do this without getting access denied errors type this into your terminal
“sudo gedit /etc/apt/sources.list”
And then scroll down to the bottom and add the text above (deb http://....)
3. after that has saved and you’ve check to see if its there (navigate to it via GUI and make sure to open it with Notepad, it will load a Menu if you just click it)
Free
1. Okay open up 'Ubuntu Software Center' (under Applications) and search for
'Wine'
Install the 'Microsoft Windows Compatibility Layer (meta package)
Premium
1. Okay first we need to add
“deb http://repository.spotify.com stable non-free”
To /etc/apt/sources.list
1A. to do this without getting access denied errors type this into your terminal
“sudo gedit /etc/apt/sources.list”
And then scroll down to the bottom and add the text above (deb http://....)
3. after that has saved and you’ve check to see if its there (navigate to it via GUI and make sure to open it with Notepad, it will load a Menu if you just click it)
Free
1. Okay open up 'Ubuntu Software Center' (under Applications) and search for
'Wine'
Install the 'Microsoft Windows Compatibility Layer (meta package)
Step 2: Step 2
Premium
2. now we need to key a download key to type this into your terminal:
“sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E”
Free
2. Once installed go to Application>Wine>Configure Wine
Go into the 'Audio' tab and check:
OSS Driver
Then set 'Hardware Accerlation: Emulation' then set the 'Default Bits Per Sample' 16'
Step 3: Step 3
Install Spotify On Linux
Premium
3. Once that goes finishes type
“sudo apt-get update”
Free
3. Next download the latest version of Spotify and make sure to safe the file (some place easy to get to, i.e. Desktop)
3A. Now right click the 'Spotify Installer' and choose:
'Open with Wine Windows Program Loader'
NOTE: If you get an error such as 'Bloacked: wine star /unix' right click the file and go to 'Properties' and then into the 'Permission' tab and check 'Allow executing files as program' this should clear it up.
Step 4: Step 4 - Finishing Up!
Premium
4. Now that that’s all done type this:
“sudo apt-get install spotify-client-qt”
4A. After that Spotify will be in your “Sound & Video” section of “Applications”
Free
4. Now Spotify is installed!
Be the First to Share
Recommendations
32 1.4K
Linux Spotify App
33 3.4K
Battery Powered Lamp That Turns on Through the Use of Magnets! in LEDs
Spotify Linux Download
45 6.5K
Spotify Linux Client
Battery Powered Contest
Plywood Challenge
Plastic Contest