Download manga/comic and generate .mobi file for better reading on Kindle devices
-
jq: command-line JSON processor
-
kcc: Kindle Comic Converter
-
fzf: command-line fuzzy finder
-
The dependency below is required by
kissmangaandreadcomic:- pup: command-line html parser
$ cd manga2mobi
$ git clone https://github.com/ciromattia/kcc.git
$ cd kcc
$ pip3 install -r requirements.txtUsage:
./manga2mobi.sh [-n <manga_name>|-s <manga_slug>] -c <id1,id2...> -k -d -f <source>
Options:
-n <manga_name> Search and find manga by manga name
-s <manga_slug> Search and find manga slug by manga slug
Attention: slug name is case sensitive
-c <id> Specify chapter ID to download
<id1,id2...> Multiple chapter IDs sepereated by ","
<id1-id2> Use "-" to indicate the range of chapters
-k Optinal, keep downloaded manga images
-d Optinal, only download manga images, without converting mobi
This option will apply -k automatically
-f <source> Optinal, from which manga source
available source: ["weebcentral", "kissmanga", "manganelo", "mangadex", "readcomic"]
weebcentral is set by default
-h | --help Display this help message
- Search manga slug of "Goblin Slayer", then select the correct one in fzf
$ ./manga2mobi.sh
> goblin slayer
[Goblin-Slayer] Goblin Slayer (["Goblin Slayer"])
[Goblin-Slayer-Side-Story-Year-One] Goblin Slayer Side Story...
...- Simply list "Onepunch Man" chapters, in case when you knew manga slug already. Be careful that manga slug is case sensitive:
$ ./manga2mobi.sh -s Onepunch-Man
...
Chapter [125]: 2020-01-10 21:33:08
Chapter [126]: 2020-01-24 20:50:57
Chapter [127]: 2020-02-08 03:28:35
Chapter [127.2]: 2020-02-21 22:57:54
Chapter [128]: 2020-03-09 20:25:48- Download "Goblin Slayer" chapter 45, all images, without converting mobi file:
$ ./manga2mobi.sh -s Goblin-Slayer -c 45 -d- Download "Goblin Slayer" chapter 45 and convert it to mobi file, without keeping downloaded images:
$ ./manga2mobi.sh -s Goblin-Slayer -c 45- Download "Onepunch Man" chapter 120, 123 and 128, then convert them to mobi files, and keep download images:
$ ./manga2mobi.sh -s Onepunch-Man -c 120,123,128 -k- Download "Onepunch Man" from chapter 130 to 133, then convert them to one mobi file:
$ ./manga2mobi.sh -s Onepunch-Man -c 130-133- Switch manga source to kissmanga:
$ ./manga2mobi.sh -k kissmanga- Customize options for
kcc-c2e:
$ KCC_OPTION="-m -g 1" ./manga2mobi.shThe purpose of this script is to download mangas in order to read them later in case when Internet is not available. Please do NOT copy or distribute downloaded mangas to any third party. Read them and delete them afterwards. Please use this script at your own responsibility.