Skip to content

Latest commit

 

History

History
137 lines (98 loc) · 3.89 KB

README.md

File metadata and controls

137 lines (98 loc) · 3.89 KB

manga2mobi

Download manga/comic and generate .mobi file for better reading on Kindle devices

Table of Contents

Supported manga/comic source

Dependency

  • jq: command-line JSON processor

  • kcc: Kindle Comic Converter

  • fzf: command-line fuzzy finder

  • The dependency below is required by kissmanga and readcomic:

    • pup: command-line html parser
  • The dependency below is required by readcomic:

Installation

The steps below are required to run once for readcomic:

$ git submodule init
$ git submodule update
$ cd bin
$ npm i puppeteer-core commander

How to use

Usage

Usage:
  ./manga2mobi.sh -s <manga_slug> -c <id1,id2...> -k -d -f <source>

Options:
  -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: ["mangalife", "kissmanga", "manganelo", "mangadex", "readcomic"]
                    mangalife is set by default
  -h | --help       Display this help message

Examples

  • 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.sh

Disclaimer

The 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.


Buy Me A Coffee