Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter
Project description
mandown
Mandown is a comic downloader and a CBZ, EPUB, MOBI, and/or PDF converter. It also supports image post-processing to make them more readable on certain devices similarly to Kindle Comic Converter.
Features
- Download comics from supported sites
- Supports downloading a range of chapters
- Supports multithreaded downloading
- Process downloaded images
- Rotate or split double-page spreads
- Trim borders
- Resize images
- Convert downloaded comics to CBZ, EPUB, MOBI, or PDF
- Convert any other CBZ, EPUB, MOBI, or PDF comic to CBZ, EPUB, MOBI, or PDF
- A library to easily do all of this from other Python scripts
Usage
Run mandown --help
or see the docs for more information and examples.
mandown get <URL>
To convert the downloaded contents to CBZ/EPUB/MOBI/PDF, append the --convert
option. To apply image processing to the downloaded images, append the --process
option.
mandown get <URL> --convert epub --process rotate_double_pages
To download only a certain range of chapters, append the --start
and/or --end
options.
Note:
--start
and--end
are inclusive, i.e., using--start 2 --end 3
will download chapters 2 and 3.
To convert an existing folder or comic file without downloading anything (like a stripped-down version of https://github.com/ciromattia/kcc), use the convert
command.
mandown convert <FORMAT> <PATH_TO_COMIC>
To process an existing folder without downloading anything, use the process
command.
mandown process <PROCESS_OPERATIONS> <PATH_TO_FOLDER>
Where PROCESS_OPERATIONS
is an option found from running mandown process --help
.
Installation
Install the package from PyPI:
pip3 install mandown
Install the optional large dependencies for some features of Mandown:
# graphical interface (GUI)
pip3 install PySide6
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 uses poetry for dependency management.
git clone https://github.com/potatoeggy/mandown.git
poetry install
poetry build
pip3 install dist/mandown*.whl
Supported sites
To request a new site, please file a new issue.
- https://bato.to
- https://blogtruyenmoi.com
- https://comicfury.com
- https://*.thecomicseries.com
- https://mangasee123.com
- https://manganato.com
- https://webtoons.com
- https://mangadex.org
- https://mangakakalot.com
- https://manhuaaz.com
- https://readcomiconline.li
- https://www.kuaikanmanhua.com
Basic library usage
See the docs for more information and examples.
To just download the images:
import mandown
mandown.download("https://comic-site.com/the-best-comic")
To download and convert to EPUB:
import mandown
comic = mandown.query("https://comic-site.com/the-best-comic")
mandown.download(comic)
mandown.convert(comic, title=comic.metadata.title, to="epub")
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
File details
Details for the file mandown-1.10.0.tar.gz
.
File metadata
- Download URL: mandown-1.10.0.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.7-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca1251e9753837c4fc73bcec6bcde473ac53e8a650898e2e828b1e010546abbe |
|
MD5 | 37399ffd0237d92ded5a55217a30f310 |
|
BLAKE2b-256 | 4c58cad463036ef54c0a2f192b4113c696980afd938fee950760d595d914087a |
File details
Details for the file mandown-1.10.0-py3-none-any.whl
.
File metadata
- Download URL: mandown-1.10.0-py3-none-any.whl
- Upload date:
- Size: 56.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.7-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b75a0151219aefd271c6dbe8f03112e801a7f75771e206e081d3c6b3fbffc4c6 |
|
MD5 | 67b0353df5f9063196aff69a969553f8 |
|
BLAKE2b-256 | 4342d78c43c1586b9b7d67afda82bf0acc4db31c4cea1e30ff642304294fbd39 |