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.1.tar.gz (26.8 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.1-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mandown-1.0.1.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.19.1-zen1-1-zen

File hashes

Hashes for mandown-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1869e38eb45935f35cce08972218c66622495b2c9f3265a2f9e1847e6d6eb26e
MD5 386c63db60a62d157e5f71a4eade0a84
BLAKE2b-256 91213d408c55f1bda5a68c04d3dc23c86a470f3b48f623e5bb8b3f29ae7579f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mandown-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.19.1-zen1-1-zen

File hashes

Hashes for mandown-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 991ac36421f7d11ba7c254055c089afb87604d667178208a4b7a9e04f8a363cd
MD5 9b0369babd0dd2d14437052398d60d2a
BLAKE2b-256 af9b5ea4af5f04bee6cf7d1413027e030b382b0a3874bc3366d6d7427fbf9c7e

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