spotify-dl/README.md

60 lines
1.5 KiB
Markdown
Raw Normal View History

2020-10-25 01:39:20 +02:00
# spotify-dl
A command line utility to download songs and playlists directly from Spotify's servers.
You need a Spotify Premium account.
2020-10-25 01:45:04 +02:00
## Dependencies
spotify-dl depends on libflac
### Debian-based distros
```
2022-06-08 18:11:58 +02:00
sudo apt install libflac-dev libasound2-dev
```
### Red Hat-based distros
```
sudo dnf install flac-devel alsa-lib-devel
2020-10-25 01:45:04 +02:00
```
### MacOSX
```
brew install flac
```
2020-10-25 01:39:20 +02:00
## Usage
```
spotify-dl 0.1.0
A commandline utility to download music directly from Spotify
USAGE:
2023-01-25 17:07:52 +01:00
spotify-dl [FLAGS] [OPTIONS] --username <username> [tracks]...
2020-10-25 01:39:20 +02:00
FLAGS:
-h, --help Prints help information
2023-01-25 17:07:52 +01:00
-o, --ordered Download songs in the order they are in the playlist, prfixing the filename with the track number
2020-10-25 01:39:20 +02:00
-V, --version Prints version information
OPTIONS:
-d, --destination <destination> The directory where the songs will be downloaded [default: .]
2023-01-25 17:07:52 +01:00
-p, --password <password> Your Spotify password
2020-10-25 01:39:20 +02:00
-u, --username <username> Your Spotify username
ARGS:
<tracks>... A list of Spotify URIs (songs, podcasts or playlists)
```
2023-01-25 17:07:52 +01:00
Songs and playlists must be passed as Spotify URIs or URLs (e.g. `spotify:track:123456789abcdefghABCDEF` for songs and `spotify:playlist:123456789abcdefghABCDEF` for playlists or `https://open.spotify.com/playlist/123456789abcdefghABCDEF?si=1234567890`).
2020-10-25 01:39:20 +02:00
2021-02-12 18:19:31 +01:00
## Disclaimer
The usage of this software may infringe Spotify's ToS and/or your local legislation. Use it under your own risk.
2020-10-25 01:39:20 +02:00
## License
2021-02-12 18:19:31 +01:00
spotify-dl is licensed under the MIT license. See [LICENSE](LICENSE).