项目作者: ritiek

项目描述 :
使用albumart和meta-tags下载Spotify播放列表
高级语言: Python
项目地址: git://github.com/ritiek/spotify-downloader.git
创建时间: 2016-07-06T18:19:20Z
项目社区:https://github.com/ritiek/spotify-downloader

开源协议:MIT License

下载


Spotify-Downloader

CHECK OUT THE LATEST SPOTDL ON https://github.com/spotDL/spotify-downloader

THIS REPOSITORY IS FOR THE OUTDATED V2 AND SHOULD NOT BE USED.


Install the last v2 release using: $ pip3 install git+https://github.com/ritiek/spotify-downloader.git (do not install
from PyPI or any other way even if mentioned in the docs later here, you’ll probably end up with v3 that way) and read
below.

PyPi
Docs Build Status
Build Status
Coverage Status
Docker Build Status
Code style: black
Gitter Chat

  • 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 applies metadata to the downloaded song which includes:

    • Title, Artist, Album, Album art, Lyrics (if found either on Genius), Album artist, Genre, Track number, Disc number, Release date, and more…
  • Works straight out of the box and does not require you to generate or mess with your API keys (already included).

Below is how your music library will look!

Installation

❗️ This tool works only with Python 3.6+

spotify-downloader works with all major distributions and even on low-powered devices such as a Raspberry Pi.

spotify-downloader can be installed via pip with:

  1. $ pip3 install git+https://github.com/ritiek/spotify-downloader.git

but be sure to check out the Installation docs
for detailed OS-specific instructions to get it and other dependencies it relies on working on your system.

Usage

For the most basic usage, downloading tracks is as easy as

  1. $ spotdl --song https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ
  2. $ spotdl --song "ncs - spectre"

For downloading playlist and albums, you need to first load all the tracks into text file and then pass
this text file to --list argument. Here is how you would do it for a playlist

  1. $ spotdl --playlist https://open.spotify.com/user/nocopyrightsounds/playlist/7sZbq8QGyMnhKPcLJvCUFD
  2. INFO: Writing 62 tracks to ncs-releases.txt
  3. $ spotdl --list ncs-releases.txt

Run spotdl --help to get a list of all available options in spotify-downloader.

Check out the Available options
page for the list of currently available options with their description.

The docs on Downloading Tracks
contains detailed information about different available ways to download tracks.

FAQ

All FAQs will be mentioned in our FAQ docs.

Contributing

Check out CONTRIBUTING.md for more info.

Running Tests

  1. $ pytest

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

License