Command line application and library to download and convert comics from various sources
Project description
mandown
Comic downloader and converter to CBZ, EPUB, and/or PDF as a Python library and command line application.
Supported sites
To request a new site, please file a new issue.
- https://mangasee123.com
- https://manganato.com
- https://webtoons.com
- https://mangadex.org
- https://mangakakalot.com
- https://readcomiconline.li
Installation
Install the package from PyPI:
pip3 install mandown
Arch Linux users may also install the package from the AUR:
git clone https://aur.archlinux.org/mandown-git.git
makepkg -si
Or, to build from source:
Mandown depends on poetry for building.
git clone https://github.com/potatoeggy/mandown.git
poetry install
poetry build
pip3 install dist/mandown*.whl
Usage
mandown download <URL>
To convert the download contents to CBZ/EPUB, append the --convert option. To apply image processing to the downloaded images, append the --process option.
mandown download <URL> --convert epub --process rotate_double_pages
To convert an existing folder without downloading anything except metadata (like a stripped-down version of https://github.com/ciromattia/kcc), use the convert command.
mandown convert <FORMAT> <PATH_TO_FOLDER>
Run mandown --help for more info.
Library usage
import mandown
# load previously downloaded comic
comic = mandown.read("path/to/comic/folder")
print(comic.metadata, comic.chapters)
# fetch comic from a source by URL
comic = mandown.query(url_to_comic)
print(comic.metadata, comic.chapters)
# download comic to ./comic using 4 threads
mandown.download(comic, "./comic/", threads=4)
# apply image post-processing to comic images in ./comic
mandown.process(comic, "./comic/", options=["rotate_double_pages", "trim_borders"])
# convert comic located in ./comic to epub, storing it in ./epubs
mandown.convert(comic, "./comic/", "epub", "./epubs")
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mandown-0.9.0.tar.gz.
File metadata
- Download URL: mandown-0.9.0.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.9-zen1-1-zen
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f26d1b9b4a737aa892d013588fbccc25d833c1bdda23457ac88cfd071f18781f
|
|
| MD5 |
4c0b3bb8d918b25b54f0c0cce549cab1
|
|
| BLAKE2b-256 |
f1a9ecfd79dff952d7c71d4a50233d319b32068e7db19ba8ca0e12e83c6fe950
|
File details
Details for the file mandown-0.9.0-py3-none-any.whl.
File metadata
- Download URL: mandown-0.9.0-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.9-zen1-1-zen
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ff50dd8e88eae50cab6382772d4db8df4b36ad1a73b883f73237e3eac4ced82
|
|
| MD5 |
c50907ce6cc15e470a014a58bb43b9f1
|
|
| BLAKE2b-256 |
9f065aa5ca6304c03b89f15ca0931c81289afba4035e51f3dc76c3fb880f114a
|