Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

mangadlmao

A cli script to download and package manga into CBZ for Komga.

What sets it apart from other scripts like this is that it creates a ComicInfo.xml for Komga and it will also download any updated chapters to get the latest versions with fixes.

File modified times are used to track which chapters have already been downloaded.

Note: The API for Semantic Versioning purposes is considered the configuration file and cli options. Every python module contained in this package is internal and subject to breaking changes at any time.

Installation

Install using pip:

python -m pip install mangadlmao

Optionally you can install the xor-cipher package to speed up decryption:

python -m pip install xor-cipher

Usage

This script is primarily meant to be used with a configuration file.

However, there are some command line arguments that can be used:

$ mangadlmao --help
Usage: mangadlmao [OPTIONS] [URL]...

  Download Manga from the configuration file or URL arguments.

Options:
  -v, --verbose       More verbose messages
  -c, --config PATH   Print or set configuration file path.
  -j, --jobs INTEGER  Number of parallel chapter page downloads.  [default: 4]
  -l, --lang TEXT     Language to download when URLs are given, can be
                      provided multiple times.
  -e, --exclude TEXT  Scanlation groups and users to exclude, can be provided
                      multiple times.
  -s, --since TEXT    Download only chapters updated after specified date
                      (eg.: 2022-02-22). If set to 'auto', only chapters newer
                      than the most recent will be downloaded. If set to
                      'null' (default), all chapters will be downloaded.
  -f, --from FLOAT    Download only chapters starting from provided number
  --help              Show this message and exit.

The default download directory is the current directory. You can change it through the configuration file.

Configuration

You can get the location of the configuration file by running mangadlmao -c or specify a custom path with mangadlmao --config=/custom/location/config.yml

The configuration file format is YAML:

---
download_directory: "."

# default "since", can be null, a date, or auto (default: auto)
# - null: download everything
# - auto: download only chapters newer than the most recently created local chapter
# - a date: eg.: 2022-02-22, only chapters updated after the date will be downloaded
since: auto

# default languages to download, can be overridden per manga
lang:
  - en

# global exclude for groups and users, can be name or id
exclude:
  - TerribleMachineTranslator
  - 33171bc6-0c2a-40d7-9cca-120ac52f09ae

manga:
  # entries with url can be either MangaDex, WeebCentral, or MangaPlus
  - url: https://mangadex.org/title/15931821-1a3a-4aee-b27c-1c95d8d5dcf1/hololive-yohane-s-twitter-shorts
    title: Hololive Shorts by Yohane
    # override default "since" setting:
    since: 2020-12-24
    # only download chapters starting from chapter number 69
    from: 69
    # override default languages (only works for MangaDex):
    lang: [en, de]
    # additional group and user excludes (only works for MangaDex):
    exclude:
      - AnotherTerribleMachineTranslator

  # entries with id are treated as MangaDex entries
  - title: Nice Manga Title
    id: aed22b2e-b544-4204-9702-cdf5cfc167de

The title key is optional but because it is used as directory name, if the name changes server-side, all chapters will be re-downloaded into a new directory.

Development

Install the package as editable and install development dependencies from requirements.txt:

python -m pip install -e .
python -m pip install -r requirements.txt

Then install pre-commit:

pre-commit install

Configure git to use the .git-blame-ignore-revs file:

git config blame.ignoreRevsFile .git-blame-ignore-revs

Metadata

Release files for mangadlmao 1.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mangadlmao 1.5.3
File Size Uploaded Provenance Actions
mangadlmao-1.5.3.tar.gz 30.1 kB With provenance Details for mangadlmao-1.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mangadlmao 1.5.3
File Interpreter ABI Platform Actions
mangadlmao-1.5.3-py3-none-any.whl Python 3 none any Details for mangadlmao-1.5.3-py3-none-any.whl

Total release size: 62.4 kB

Release files / mangadlmao-1.5.3.tar.gz

Download URL mangadlmao-1.5.3.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
266371c139244164d07a0ff38d99fb4df40f4b7ff41646f1a52a357fcd2c67e3
BLAKE2b-256 checksum
How to use checksums
df1ea5ac35ae8f70411d2671d58e9412b553b1351ca6f14c838dd6553988cddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2025.

Transparency log

Release files / mangadlmao-1.5.3-py3-none-any.whl

Download URL mangadlmao-1.5.3-py3-none-any.whl
Size 32.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12e7d093c0ec817a8784ce3839bb69492bea6b03cba6a5b415c4cb094c8b1915
BLAKE2b-256 checksum
How to use checksums
9dd9ac21380c31d0e2f22863fb59d900bddaa36bc6b0de33b8a2edc0d822f5ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2025.

Transparency log

Security for mangadlmao 1.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mangadlmao-1.5.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page