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 compiles 6 chapters per volume or if you want to know the volumes and chapters. For more information on chapters by volume, 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}] [--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`.
   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 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.0.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.0-py3-none-any.whl (8.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: getpycomic-0.1.0.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-1015-azure

File hashes

Hashes for getpycomic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 13e869780e3fe9b462dc6102252f262713a2b21e67ee55434b31f0719358c763
MD5 26820204b678473d5b16d4ed3dfa4791
BLAKE2b-256 79f37e4794a8f161265a7b95f114c65672c3459f98e7a103f82848c2fe81bf53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: getpycomic-0.1.0-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-1015-azure

File hashes

Hashes for getpycomic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef6c434d295448be0156759a698e0522be150ab8e924aabecf36b65a237887a6
MD5 007b1070cd2892cccaf64dd49b301bd0
BLAKE2b-256 e12fbc7a771a6a4e7a2a3a8e09f17942c1e36b577678d39a49b5931035b36c7d

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