Skip to main content

Take the manga/comics wherever you want.

Project description

getpycomic

License: MIT

Searches and obtains the manga/comic images and generates a CBZ file. Allows to group the chapters by volumes.

By default, it uses 6 chapters per volume or if you want to know the volumes and chapters you can consult that information at https://comick.io.

It also allows to convert directories with manga/comic images into CBZ files. Internal directory structure you must have:

DIRECTORY
├── 1.0
│   ├── 001.jpg
│   ├── 002.jpg
│   └── 003.jpg
├── 2.0
│   ├── 001.jpg
│   ├── 002.jpg
│   └── 003.jpg
└── 3.0
    ├── 001.jpg
    ├── 002.jpg
    └── 003.jpg

All images and CBZ files are stored on the current user's desktop.

Supported pages

To request new pages, make a new issue with enhancement tag.


[!NOTE] This project aims to give you the possibility to take this entertainment wherever you go, even without an Internet connection.

[!IMPORTANT] You must have Firefox installed. It will search the default paths of Firefox. If it is not found or installed in another path, use the --firefox-bin argument and the full path to the executable.

[!IMPORTANT] DISCLAIMER:
This application does not host, distribute, or store any copyrighted content. It is a technical tool intended for personal or educational purposes only. The author is not responsible for any misuse or legal consequences resulting from its use.


Installation

$ pip install getpycomic

Usage

$ getpycomic --help
usage: getpycomic [-h] -n NAME_OR_PATH [NAME_OR_PATH ...] [-w {tmomanga,zonatmo,novelcool}] [-c CHAPTER] [-v VOLUMES [VOLUMES ...]] [--no-cbz]
                  [-e {selenium}] [-l {en,es,br,it,ru,de,fr}] [--no-download] [-s] [--verbose] [-i] [--debug] [--no-preserve]
                  [--size {original,small,medium,large}] [--webcomic] [--firefox-bin FIREFOX_BIN]

Gets manga/comic from web to CBZ files.

optional arguments:
  -h, --help            show this help message and exit
  -n NAME_OR_PATH [NAME_OR_PATH ...], --name_or_path NAME_OR_PATH [NAME_OR_PATH ...]
                        Name of the manga/comic or path of the manga/comic downloaded
  -w {tmomanga,zonatmo,novelcool}, --web {tmomanga,zonatmo,novelcool}
                        Select website. Default `tmomanga`
  -c CHAPTER, --chapter CHAPTER
                        Chapters: `all`, `1,5`, `5+` `1-5`. Default `all`.
  -v VOLUMES [VOLUMES ...], --volumes VOLUMES [VOLUMES ...]
                        Indicate how the chapters will be put together by volume in the CBZ file. By default, each volume has `6` chapters. For
                        example: 1:[1,4],2:[5,9]
  --no-cbz              It only downloads chapters and does not create CBZ files.
  -e {selenium}, --engine {selenium}
                        Select engine to get data. Default `selenium`.
  -l {en,es,br,it,ru,de,fr}, --language {en,es,br,it,ru,de,fr}
                        Select language. Default `es`.
  --no-download         It does not configure the motor and does not prepare it.
  -s, --show            Show engine or not. Default is no.
  --verbose             Displays messages of all operations.
  -i, --interactive     Interactive Prompt for manga/comics search. By default the first item found is used.
  --debug               Show more messages for debug.
  --no-preserve         Preserve or not the manga/comic images. By default the images are preserved.
  --size {original,small,medium,large}
                        Select the size of the image. Default is `original`.
  --webcomic            If it is a webcomic/webtoon.
  --firefox-bin FIREFOX_BIN
                        Binary path of Firefox.

You can read your manga/comics wherever you want.

Image sizes

Available options used by the --size argument:

Options Sizes
original retains original sizes
small 800x1200
medium 1000x1500
large 1200x1800

Examples

  • gets all chapters and create volumes with 6 chapter.
$ getpycomic --name_or_path MANGA_NAME --web zonatmo
  • gets all chapters of webcomic/webtoon and create volumes with 6 chapter.
$ getpycomic --name_or_path MANGA_NAME --web zonatmo --webcomic
  • gets all available chapters of "MANGA_NAME" from "zonatmo", all images are stored with small size and builds CBZ files with specific chapters.
$ getpycomic --name_or_path MANGA_NAME --web zonatmo --chapter all --size small --volumes 1: [1, 15],2: [16, 30],3: [31, 45]

or

$ getpycomic --name_or_path MANGA_NAME --web zonatmo --chapter all --size small --volumes 1:[1,15],2:[16,30],3:[31,45]
  • convert image directory to CBZ files. Using --volumes you can specify chapters per volume, if omitted, 6 chapters per volume will be used.
$ getpycomic --name_or_path /path/DIRECTORY --no-download

or

$ getpycomic --name_or_path /path/DIRECTORY --no-download --volumes 1:[1,3]
  • Pass the Firefox binary path.

Linux

$ getpycomic --name_or_path MANGA_NAME --firefox-bin /path/firefox

Windows

$ getpycomic --name_or_path MANGA_NAME --firefox-bin \path\firefox.exe

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

getpycomic-0.1.2.tar.gz (8.1 MB view details)

Uploaded Source

Built Distribution

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

getpycomic-0.1.2-py3-none-any.whl (8.1 MB view details)

Uploaded Python 3

File details

Details for the file getpycomic-0.1.2.tar.gz.

File metadata

  • Download URL: getpycomic-0.1.2.tar.gz
  • Upload date:
  • Size: 8.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.5 Linux/6.11.0-1018-azure

File hashes

Hashes for getpycomic-0.1.2.tar.gz
Algorithm Hash digest
SHA256 240de64413d46be60a28f5cb0f391c840441c6d85264425c0ec589a592900ebd
MD5 2f76dcb8639019aadc911a778c209051
BLAKE2b-256 88ce069f037882d21d25a8202c481c5df00f3e07615d3850e568746a59cadb41

See more details on using hashes here.

File details

Details for the file getpycomic-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: getpycomic-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.5 Linux/6.11.0-1018-azure

File hashes

Hashes for getpycomic-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de5f030980435f05207b99e559f534df38a8470ffaacf9159d27cec325bbea2d
MD5 99e857d007af08d49e53770ef8b80d97
BLAKE2b-256 3688ba8a2f6dbb6547978860bd7ec7097157ac2f1b030c1870e244892228535c

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