audiobook-dl-0.5.0
توضیحات
CLI tool for downloading audiobooks from online sources
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | audiobook-dl-0.5.0 |
| نام | audiobook-dl |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Joakim Holm <mail@joakimholm.xyz> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/audiobook-dl/ |
| مجوز | - |
# audiobook-dl



[](https://ko-fi.com/jo1gi)
CLI tool for downloading audiobooks from online sources.
## Supported Services
audiobook-dl currently supports downloading from the following sources:
- [audiobooks.com](https://audiobooks.com)
- [BookBeat](https://www.bookbeat.com/)
- [Chirp](https://www.chirpbooks.com/)
- [eReolen (Danish Library)](https://ereolen.dk)
- [Librivox](https://librivox.org)
- [Nextory](https://nextory.com)
- [Overdrive (Library service)](https://www.overdrive.com/)
- [Saxo](https://saxo.com)
- [Scribd](https://scribd.com)
- [Storytel](https://www.storytel.com/)
- [YourCloudLibrary](https://www.yourcloudlibrary.com/)
[More info](./supported_sites.md)
## Installation
audiobook-dl can be installed from the repo itself or through pip.
To get the newest stable version with pip run:
```shell
pip install audiobook-dl
```
If you want to use the newest version (can be unstable) run:
```shell
pip install "git+https://github.com/jo1gi/audiobook-dl.git"
```
or
```shell
git clone https://github.com/jo1gi/audiobook-dl.git
cd audiobook-dl
python3 setup.py install
```
Some features require [ffmpeg](https://ffmpeg.org/) which can be installed
through most package managers or from [ffmpeg.org/download.html](https://ffmpeg.org/download.html).
## Authentication
### Cookies
audiobook-dl uses Netscape cookie files for authentication in most cases. I use
[this](https://github.com/rotemdan/ExportCookies) extension to export my cookies
from the browser.
Cookies can be placed in current dir as `cookies.txt` or be given with the
`--cookie` argument.
### Login
[Some sources](./supported_sites.md) support authentication through login with
username and password (and sometimes library). Use the `--username` and
`--password` arguments or enter them through an interactive prompt.
## Downloading audiobooks
```shell
audiobook-dl -c <cookie file> <url>
```
**Most sites require you to provide the listening page not not just the
information page**
## Arguments
| Argument | Value |
|-------------------|-------------------------------------------------------------------|
| url | The url of the page where you listen to the audiobook |
| -c/--cookie | Path to a Netscape cookie file |
| --combine | Combine all output files into a single file (requires ffmpeg) |
| --cover | Only download cover |
| -d/--debug | Print debug information |
| -o/--output | Output location |
| --remove-chars | List of characters that will be removed from output path |
| --no-chapters | Don't include chapters in output file |
| --output-format | Output file format |
| --verbose--ffmpeg | Show ffmpeg output in terminal |
| --username | Username to source (Required when using login) |
| --password | Password to source (Required when using login) |
| --library | Specific library on service (Sometimes required when using login) |
## Output
By default, audiobook-dl saves all audiobooks to `{title}` relative to the
current path. This can be changed with the `--output` argument. Path can be
customized by audiobook with the following fields:
- `title`
- `author`
- `series`
- `narrator`
Not all fields are available for all audiobooks.
The file extension can be changed with the `--output-format` argument.
## Contributions
Issues, bug-reports, pull requests or ideas for features and improvements are
**very welcome**.
## Donations
If you like the project, please consider donating:
- [Ko-fi](https://ko-fi.com/jo1gi)
- [Buy me a Coffee](https://www.buymeacoffee.com/joakimholm)
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | lxml |
| - | rich |
| - | mutagen |
| - | pillow |
| - | cssselect |
| - | m3u8 |
| - | pycryptodome |
| - | importlib-resources |
نحوه نصب
نصب پکیج whl audiobook-dl-0.5.0:
pip install audiobook-dl-0.5.0.whl
نصب پکیج tar.gz audiobook-dl-0.5.0:
pip install audiobook-dl-0.5.0.tar.gz