streamrip/README.md

160 lines
4.7 KiB
Markdown
Raw Normal View History

2021-03-25 19:19:12 +01:00
# streamrip
2021-05-04 07:34:26 +02:00
[![Downloads](https://static.pepy.tech/personalized-badge/streamrip?period=total&units=international_system&left_color=black&right_color=green&left_text=Downloads)](https://pepy.tech/project/streamrip)
2021-03-25 19:19:12 +01:00
2021-05-07 07:03:55 +02:00
2021-04-06 06:09:51 +02:00
A scriptable stream downloader for Qobuz, Tidal, Deezer and SoundCloud.
2021-03-25 19:19:12 +01:00
2021-04-14 02:00:00 +02:00
2021-03-29 23:08:26 +02:00
## Features
2021-03-25 19:19:12 +01:00
2021-04-13 01:12:36 +02:00
- Super fast, as it utilizes concurrent downloads and conversion
2021-04-06 06:09:51 +02:00
- Downloads tracks, albums, playlists, discographies, and labels from Qobuz, Tidal, Deezer, and SoundCloud
2021-04-21 18:40:33 +02:00
- Supports downloads of Spotify and Apple Music playlists through [last.fm](https://www.last.fm)
2021-03-29 23:08:26 +02:00
- Automatically converts files to a preferred format
- Has a database that stores the downloaded tracks' IDs so that repeats are avoided
- Easy to customize with the config file
2021-05-04 00:44:25 +02:00
- Integration with `youtube-dl`
2021-03-25 19:19:12 +01:00
## Installation
First, ensure [Python](https://www.python.org/downloads/) and [pip](https://pip.pypa.io/en/stable/installing/) are installed. Then run the following in the command line:
2021-03-30 19:19:14 +02:00
```bash
pip3 install streamrip --upgrade
2021-03-30 19:19:14 +02:00
```
If you would like to use `streamrip`'s conversion capabilities, download TIDAL videos, or download music from SoundCloud, install [ffmpeg](https://ffmpeg.org/download.html). To download music from YouTube, install [youtube-dl](https://github.com/ytdl-org/youtube-dl#installation).
2021-03-30 19:19:14 +02:00
2021-03-25 19:19:12 +01:00
2021-03-29 23:08:26 +02:00
## Example Usage
2021-03-25 19:19:12 +01:00
**For Tidal and Qobuz, you NEED a premium subscription.**
Download an album from Qobuz
```bash
rip -u https://open.qobuz.com/album/0060253780968
```
2021-03-30 19:32:44 +02:00
![Streamrip downloading an album](https://github.com/nathom/streamrip/blob/main/demo/download_url.png?raw=true)
2021-03-25 19:19:12 +01:00
Download the album and convert it to `mp3`
```bash
rip --convert mp3 -u https://open.qobuz.com/album/0060253780968
```
2021-03-29 23:11:58 +02:00
2021-03-29 21:12:50 +02:00
To set the quality, use the `--quality` option to `0, 1, 2, 3, 4`:
2021-04-06 06:09:51 +02:00
| Quality ID | Audio Quality | Available Sources |
| ---------- | --------------------- | -------------------------------------------- |
| 0 | 128 kbps MP3 or AAC | Deezer, Tidal, SoundCloud (most of the time) |
| 1 | 320 kbps MP3 or AAC | Deezer, Tidal, Qobuz, SoundCloud (rarely) |
| 2 | 16 bit, 44.1 kHz (CD) | Deezer, Tidal, Qobuz, SoundCloud (rarely) |
| 3 | 24 bit, ≤ 96 kHz | Tidal (MQA), Qobuz, SoundCloud (rarely) |
| 4 | 24 bit, ≤ 192 kHz | Qobuz |
2021-03-29 21:12:50 +02:00
2021-03-29 23:11:58 +02:00
2021-03-29 21:12:50 +02:00
```bash
rip --quality 3 https://tidal.com/browse/album/147569387
```
2021-04-06 06:09:51 +02:00
Search for albums matching `lil uzi vert` on SoundCloud
2021-03-25 19:19:12 +01:00
```bash
2021-04-06 06:09:51 +02:00
rip search -s soundcloud 'lil uzi vert'
2021-03-25 19:19:12 +01:00
```
2021-03-29 23:30:20 +02:00
![streamrip interactive search](https://github.com/nathom/streamrip/blob/main/demo/interactive_search.png?raw=true)
2021-03-25 19:19:12 +01:00
Search for *Rumours* on Tidal, download it, convert it to `ALAC`
```bash
rip -c alac search 'fleetwood mac rumours'
```
Qobuz discographies can be filtered using the `filter` subcommand
```bash
rip filter --repeats --features 'https://open.qobuz.com/artist/22195'
```
Want to find some new music? Use the `discover` command (only on Qobuz)
```bash
rip discover --list 'best-sellers'
```
2021-03-29 23:11:58 +02:00
> Avaiable options for `--list`:
>
> - most-streamed
> - recent-releases
> - best-sellers
> - press-awards
> - ideal-discography
> - editor-picks
> - most-featured
> - qobuzissims
> - new-releases
> - new-releases-full
> - harmonia-mundi
> - universal-classic
> - universal-jazz
> - universal-jeunesse
> - universal-chanson
2021-05-14 07:52:34 +02:00
## Other information
2021-03-25 19:19:12 +01:00
2021-05-14 07:52:34 +02:00
For more in-depth information about `streamrip`, see the [wiki](https://github.com/nathom/streamrip/wiki/).
2021-04-06 06:54:21 +02:00
## Contributions
2021-04-14 20:49:45 +02:00
All contributions are appreciated! You can help out the project by opening an issue
or by submitting code.
### Guidelines for opening issues
- Include a general description of the feature request or bug in the title
- Limit each Issue to a single subject
2021-04-14 20:54:29 +02:00
- For bug reports, include the traceback, command (including the url) you used,
and version of `streamrip`
2021-06-02 03:09:48 +02:00
- If you do not follow the template provided, I will not respond
2021-04-14 20:49:45 +02:00
### Contributing code
If you're new to Git, follow these steps to open your first Pull Request (PR):
2021-04-06 06:54:21 +02:00
- Fork this repository
- Clone the new repository
- Commit your changes
- Open a pull request to the `dev` branch
Please document any functions or obscure lines of code.
2021-03-25 19:19:12 +01:00
2021-03-29 23:19:23 +02:00
## Acknowledgements
Thanks to Vitiko98, Sorrow446, and DashLt for their contributions to this project, and the previous projects that made this one possible.
`streamrip` was inspired by:
- [qobuz-dl](https://github.com/vitiko98/qobuz-dl)
- [Qo-DL Reborn](https://github.com/badumbass/Qo-DL-Reborn)
2021-03-29 23:23:22 +02:00
- [Tidal-Media-Downloader](https://github.com/yaronzz/Tidal-Media-Downloader)
2021-04-06 06:09:51 +02:00
- [scdl](https://github.com/flyingrub/scdl)
2021-03-29 23:23:22 +02:00
## Disclaimer
2021-05-14 07:52:34 +02:00
I will not be responsible for how you use `streamrip`. By using `streamrip`, you agree to the terms and conditions of the Qobuz, Tidal, and Deezer APIs.