# mandown

[](http://mypy-lang.org/)
[](https://pypi.org/project/mandown)
[](https://aur.archlinux.org/packages/mandown-git)
[](https://github.com/potatoeggy/mandown/releases/latest)
[](/LICENSE)
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](https://github.com/ciromattia/kcc).
## Features
- Download comics from [supported sites](#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](#basic-library-usage)
## Usage
Run `mandown --help` or see the [docs](/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](https://aur.archlinux.org/packages/mandown-git):
```
git clone https://aur.archlinux.org/mandown-git.git
makepkg -si
```
Or, to build from source:
Mandown uses [poetry](https://github.com/python-poetry/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://github.com/potatoeggy/mandown/issues/new?title=Source%20request:).
- <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](/docs/) for more information and examples.
To just download the images:
```python
import mandown
mandown.download("https://comic-site.com/the-best-comic")
```
To download and convert to EPUB:
```python
import mandown
comic = mandown.query("https://comic-site.com/the-best-comic")
mandown.download(comic)
mandown.convert(comic, title=comic.metadata.title, to="epub")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/potatoeggy/mandown",
"name": "mandown",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.14,>=3.10",
"maintainer_email": null,
"keywords": "manga, comic, downloader, download, webtoons, webtoon",
"author": "potatoeggy",
"author_email": "eggyrules@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ad/08/bb91c692e703a12f70a4aaf6c7f2d0d812a4e649a88eb1e32e4eb2984d40/mandown-1.11.1.tar.gz",
"platform": null,
"description": "# mandown\n\n\n[](http://mypy-lang.org/)\n[](https://pypi.org/project/mandown)\n[](https://aur.archlinux.org/packages/mandown-git)\n[](https://github.com/potatoeggy/mandown/releases/latest)\n[](/LICENSE)\n\nMandown 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](https://github.com/ciromattia/kcc).\n\n## Features\n\n- Download comics from [supported sites](#supported-sites)\n - Supports downloading a range of chapters\n - Supports multithreaded downloading\n- Process downloaded images\n - Rotate or split double-page spreads\n - Trim borders\n - Resize images\n- Convert downloaded comics to CBZ, EPUB, MOBI, or PDF\n - Convert any other CBZ, EPUB, MOBI, or PDF comic to CBZ, EPUB, MOBI, or PDF\n- [A library to easily do all of this from other Python scripts](#basic-library-usage)\n\n## Usage\n\nRun `mandown --help` or see the [docs](/docs/) for more information and examples.\n\n```\nmandown get <URL>\n```\n\nTo 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.\n\n```\nmandown get <URL> --convert epub --process rotate_double_pages\n```\n\nTo download only a certain range of chapters, append the `--start` and/or `--end` options.\n\n> **Note:** `--start` and `--end` are _inclusive_, i.e., using `--start 2 --end 3` will download chapters 2 and 3.\n\nTo 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.\n\n```\nmandown convert <FORMAT> <PATH_TO_COMIC>\n```\n\nTo process an existing folder without downloading anything, use the `process` command.\n\n```\nmandown process <PROCESS_OPERATIONS> <PATH_TO_FOLDER>\n```\n\nWhere `PROCESS_OPERATIONS` is an option found from running `mandown process --help`.\n\n## Installation\n\nInstall the package from PyPI:\n\n```\npip3 install mandown\n```\n\nInstall the optional large dependencies for some features of Mandown:\n\n```\n# graphical interface (GUI)\npip3 install PySide6\n```\n\nArch Linux users may also install the package from the [AUR](https://aur.archlinux.org/packages/mandown-git):\n\n```\ngit clone https://aur.archlinux.org/mandown-git.git\nmakepkg -si\n```\n\nOr, to build from source:\n\nMandown uses [poetry](https://github.com/python-poetry/poetry) for dependency management.\n\n```\ngit clone https://github.com/potatoeggy/mandown.git\npoetry install\npoetry build\npip3 install dist/mandown*.whl\n```\n\n## Supported sites\n\nTo request a new site, please file a [new issue](https://github.com/potatoeggy/mandown/issues/new?title=Source%20request:).\n\n- <https://bato.to>\n- <https://blogtruyenmoi.com>\n- <https://comicfury.com>\n- https://\\*.thecomicseries.com\n- <https://mangasee123.com>\n- <https://manganato.com>\n- <https://webtoons.com>\n- <https://mangadex.org>\n- <https://mangakakalot.com>\n- <https://manhuaaz.com>\n- <https://readcomiconline.li>\n- <https://www.kuaikanmanhua.com>\n\n## Basic library usage\n\nSee the [docs](/docs/) for more information and examples.\n\nTo just download the images:\n\n```python\nimport mandown\n\nmandown.download(\"https://comic-site.com/the-best-comic\")\n```\n\nTo download and convert to EPUB:\n\n```python\nimport mandown\n\ncomic = mandown.query(\"https://comic-site.com/the-best-comic\")\nmandown.download(comic)\nmandown.convert(comic, title=comic.metadata.title, to=\"epub\")\n```\n",
"bugtrack_url": null,
"license": "AGPL-3.0-only",
"summary": "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter",
"version": "1.11.1",
"project_urls": {
"Documentation": "https://github.com/potatoeggy/mandown",
"Homepage": "https://github.com/potatoeggy/mandown",
"Repository": "https://github.com/potatoeggy/mandown"
},
"split_keywords": [
"manga",
" comic",
" downloader",
" download",
" webtoons",
" webtoon"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "83d42f26a48407e36f18ce8780fe655f56ad4d15ee69e4dee73607c524c8c03f",
"md5": "b08bb48ad90be1319022fcb57c8ab23c",
"sha256": "1a44089164e8feb1669030d5f73571f67a83018da61cdc2297c23f463c65d8b8"
},
"downloads": -1,
"filename": "mandown-1.11.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b08bb48ad90be1319022fcb57c8ab23c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.10",
"size": 58232,
"upload_time": "2025-01-12T04:18:40",
"upload_time_iso_8601": "2025-01-12T04:18:40.228566Z",
"url": "https://files.pythonhosted.org/packages/83/d4/2f26a48407e36f18ce8780fe655f56ad4d15ee69e4dee73607c524c8c03f/mandown-1.11.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ad08bb91c692e703a12f70a4aaf6c7f2d0d812a4e649a88eb1e32e4eb2984d40",
"md5": "dcd54b1a997e8d59bd2f248d2e0baf57",
"sha256": "ff8631d84f6a8cfaae97b8120f56062aae6a22278504df002d9a492ab12c8f5d"
},
"downloads": -1,
"filename": "mandown-1.11.1.tar.gz",
"has_sig": false,
"md5_digest": "dcd54b1a997e8d59bd2f248d2e0baf57",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.14,>=3.10",
"size": 45349,
"upload_time": "2025-01-12T04:18:42",
"upload_time_iso_8601": "2025-01-12T04:18:42.705486Z",
"url": "https://files.pythonhosted.org/packages/ad/08/bb91c692e703a12f70a4aaf6c7f2d0d812a4e649a88eb1e32e4eb2984d40/mandown-1.11.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-12 04:18:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "potatoeggy",
"github_project": "mandown",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "mandown"
}