getpycomic
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-binargument 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
smallsize 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
--volumesyou 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.
Release files for getpycomic 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| getpycomic-0.1.2.tar.gz | 8.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| getpycomic-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 MB
Release files / getpycomic-0.1.2.tar.gz
| Download URL | getpycomic-0.1.2.tar.gz |
|---|---|
| Size | 8.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
240de64413d46be60a28f5cb0f391c840441c6d85264425c0ec589a592900ebd
|
|
BLAKE2b-256 checksum How to use checksums |
88ce069f037882d21d25a8202c481c5df00f3e07615d3850e568746a59cadb41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.5 Linux/6.11.0-1018-azure
|
Release files / getpycomic-0.1.2-py3-none-any.whl
| Download URL | getpycomic-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de5f030980435f05207b99e559f534df38a8470ffaacf9159d27cec325bbea2d
|
|
BLAKE2b-256 checksum How to use checksums |
3688ba8a2f6dbb6547978860bd7ec7097157ac2f1b030c1870e244892228535c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.5 Linux/6.11.0-1018-azure
|