CLI tool for downloading audiobooks from online sources
Project description
audiobook-dl
CLI tool for downloading audiobooks from online sources.
Supported Services
audiobook-dl currently supports downloading from the following sources:
- audiobooks.com
- BookBeat
- Chirp
- eReolen (Danish Library)
- Librivox
- Nextory
- Overdrive (Library service)
- Scribd
- Storytel
- YourCloudLibrary
Installation
audiobook-dl can be installed from the repo itself or through pip.
git clone https://github.com/jo1gi/audiobook-dl.git
cd audiobook-dl
python3 setup.py install
or
pip install audiobook-dl
Some features require ffmpeg which can be installed through most package managers or from ffmpeg.org/download.html.
Authentication
Cookies
audiobook-dl uses Netscape cookie files for authentication in most cases. I use this 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 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
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for audiobook_dl-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc180d05940aaca56e1dd83dae5a0557e707a8aa505f06da510d7aceef139b01 |
|
MD5 | 8ae88dca75792e0ecb97829d903ba88c |
|
BLAKE2b-256 | 782a371ebe1c2be623be85c63aa152876aa45e23cdf7e806796efb0c86f35922 |