Skip to main content

Comic/manga/webtoon downloader and converter to CBZ/EPUB/PDF

Project description

mandown

Supported Python versions Code style: black Checked with mypy Download from PyPI Download from the AUR Latest release License

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.

Installation

Install the package from PyPI:

pip3 install mandown

Install the optional large dependencies for some features of Mandown:

# image processing
pip3 install Pillow

# 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 depends on poetry for building.

git clone https://github.com/potatoeggy/mandown.git
poetry install
poetry build
pip3 install dist/mandown*.whl

Usage

mandown get <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 get <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 a previously downloaded comic...
comic = mandown.load("path/to/comic/folder")
print(comic.metadata, comic.chapters)

# ...OR fetch a 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/", 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mandown-1.0.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mandown-1.0.0-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

Details for the file mandown-1.0.0.tar.gz.

File metadata

  • Download URL: mandown-1.0.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.18.12-arch1-g14-1

File hashes

Hashes for mandown-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d58ad9f6e3551cd5e75860ff06d0699365382863e1513d7cc2dd7b1d815ccb4a
MD5 8566bcc129a92fede45728cd28eb1266
BLAKE2b-256 4f6bc2d11ab17ad8cfe0872f68604b98c232c9640d27e2e43628f1679cdfc038

See more details on using hashes here.

File details

Details for the file mandown-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mandown-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.18.12-arch1-g14-1

File hashes

Hashes for mandown-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdc82e1a83bacfc22098a5f69c8e4c157580db6da92abb39ebf8adbb14fd4762
MD5 21b461292d8cffaa88124aafd47139a4
BLAKE2b-256 7972f7587ff84292c67e4bef1c763337b23f6c89b964c6b0d4291369d5119469

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page