Skip to main content

CLI to search and download manga chapters -> exported to CBZ.

Project description

KizamuManga

๐Ÿ“š KizamuManga State License

KizamuManga is a command-line tool to search, download, and convert manga chapters into CBZ files from different online sources.

โœจ Main Features

  • ๐Ÿ”Ž Interactive search for manga and chapter selection directly from the terminal.
  • โšก Asynchronous downloads with concurrency control, automatic CBZ export, and cleanup of temporary files.
  • ๐Ÿ–ผ๏ธ Optional image processing: grayscale conversion, margin cropping, and proportional resizing.
  • ๐ŸŒ Multi-source support (WeebCentral, InManga, and LeerMangaEsp) with an extensible scraping system based on Playwright.
  • ๐Ÿ“Š Progress indicators and rotating logs for easy tracking of execution. ##โšกQuick Start
  1. Clone the repository and enter the project folder
git clone https://github.com/CoceraCia/KizamuManga.git
  1. Enter the project repo
cd KizamuManga
  1. install requirements and playwright browsers
pip install -r requirements.txt && playwright install
  1. start searching or installing a manga
python -m kizamumanga.main search "One Piece"
python -m kizamumanga.main install "One Piece"

๐Ÿงพ Requirements

  • Python 3.9 or higher.
  • Dependencies listed in requirements.txt.
  • Playwright installed along with its browsers (playwright install).
  • Access to the supported websites to fetch online chapters.

โš™๏ธ Installation

  1. Clone the repository and enter the project folder.
  2. (Optional) Create and activate a virtual environment.
  3. Install dependencies: pip install -r requirements.txt
  4. Install Playwright browsers: playwright install

๐Ÿ”ง Configuration

The config.toml file (at the project root) allows customization of parameters such as:

Key Description
cbz_path Destination folder for CBZ files (default:manga_downloads).
website Active source (weeb_central, inmanga, leermangaesp).
multiple_tasks Maximum number of concurrent downloads.
color Export in color (true) or grayscale (false).
cropping_mode Enable automatic margin cropping.
width / height Target resolution; leave empty to keep original size.

You can also modify configuration from the terminal:

  • Change scraper and concurrency: python -m kizamumanga.main config scraper --website inmanga --multiple_tasks 5
  • Change output folder: python -m kizamumanga.main config paths --cbz_path "./my_manga"
  • Apply predefined resolution profile: python -m kizamumanga.main config dimensions --device boox_go_7

๐Ÿ•น๏ธ Basic Usage

  • Search for manga: python -m kizamumanga.main search "One Piece"
  • Download all chapters: python -m kizamumanga.main install "One Piece"
  • Download a specific chapter or range:
    • python -m kizamumanga.main install "One Piece" 5
    • python -m kizamumanga.main install "One Piece" 10-15 CBZ files are saved in the folder defined by cbz_path.

๐Ÿ”„ Internal Workflow

  1. The Runner validates arguments, loads configuration, and sets up the selected scraper.
  2. Manga and chapter lists are fetched using Playwright + BeautifulSoup.
  3. Each chapter is downloaded via aiohttp, optionally processed, and packed into a CBZ.

๐Ÿ—‚๏ธ Project Structure

โ”œโ”€โ”€ config.toml
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ src/
    โ””โ”€โ”€ kizamumanga/
        โ”œโ”€โ”€ main.py
        โ”œโ”€โ”€ handlers/
        โ”‚   โ””โ”€โ”€ args_handler.py
        โ”œโ”€โ”€ engine/
        โ”‚   โ”œโ”€โ”€ runner.py
        โ”‚   โ”œโ”€โ”€ downloader.py
        โ”‚   โ”œโ”€โ”€ image_converter.py
        โ”‚   โ””โ”€โ”€ paths.py
        โ”œโ”€โ”€ scraping/
        โ”‚   โ”œโ”€โ”€ base.py
        โ”‚   โ”œโ”€โ”€ weeb_central.py
        โ”‚   โ”œโ”€โ”€ inmanga.py
        โ”‚   โ””โ”€โ”€ leermangaesp.py
        โ””โ”€โ”€ utils/
            โ”œโ”€โ”€ logger.py
            โ”œโ”€โ”€ loading_spinner.py
            โ””โ”€โ”€ general_tools.py

๐Ÿ“œ License

This project is under the license MIT.

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

kizamu_manga-1.0.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

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

kizamu_manga-1.0.0-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kizamu_manga-1.0.0.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for kizamu_manga-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2ac0083fdf7e2426718d6970f04dac6a838931204769f6aaec67b674164a9af6
MD5 f6c5efde3c4f675281431f27647f43fb
BLAKE2b-256 ce9bbe980c24c066e4aa01c236cedd7973e8d986ad35da668e677c66e2b12db2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kizamu_manga-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for kizamu_manga-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b837ec33c11a2222abeaaabcb5fd741fe14a681e92be4657ebb20b952dc07cd7
MD5 716d95eb51faf4c5682db38db49a00d9
BLAKE2b-256 aebf0779d03024f20e917eb3b7411c46313b4d511fac42c99f3a87cacf17b861

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