An open API service indexing awesome lists of open source software.

https://github.com/kevcui/manga2mobi

:floppy_disk: Download manga/comic and convert it to mobi file for Kindle
https://github.com/kevcui/manga2mobi

bash bash-script comic-downloader kindle kissmanga kissmanga-downloader kissmanga-scraper manga manga-downloader manga-scraper mangadex mangalife manganelo mobi mobile readcomiconline

Last synced: 3 months ago
JSON representation

:floppy_disk: Download manga/comic and convert it to mobi file for Kindle

Awesome Lists containing this project

README

          

# manga2mobi

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

## Table of Contents

- [Supported manga/comic source](#supported-mangacomic-source)
- [Dependency](#dependency)
- [Installation](#installation)
- [How to use](#how-to-use)
- [Usage](#usage)
- [Examples](#examples)
- [Disclaimer](#disclaimer)

## Supported manga/comic source

- ~[MangaLife](https://manga4life.com/)~
- [Weeb Central](https://weebcentral.com/)
- [Kissmanga](https://kissmanga.org/)
- [Manganelo](https://manganelo.com/)
- [Mangadex](https://mangadex.org/)
- [readcomic](https://readcomiconline.to/)

## Dependency

- [jq](https://stedolan.github.io/jq/download/): command-line JSON processor
- [kcc](https://github.com/ciromattia/kcc): Kindle Comic Converter
- [fzf](https://github.com/junegunn/fzf): command-line fuzzy finder

- The dependency below is required by `kissmanga` and `readcomic`:

- [pup](https://github.com/EricChiang/pup): command-line html parser

- The dependency below is required by `readcomic`:

- [cf-cookie](https://github.com/KevCui/cf-cookie): fetch cf cookie

## Installation

The steps below are required to run once for `readcomic`:

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

## How to use

### Usage

```
Usage:
./manga2mobi.sh [-n |-s ] -c -k -d -f

Options:
-n Search and find manga by manga name
-s Search and find manga slug by manga slug
Attention: slug name is case sensitive
-c Specify chapter ID to download
Multiple chapter IDs sepereated by ","
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 Optinal, from which manga source
available source: ["weebcentral", "kissmanga", "manganelo", "mangadex", "readcomic"]
weebcentral is set by default
-h | --help Display this help message
```

### Examples

- Search manga slug of "Goblin Slayer", then select the correct one in fzf

```bash
$ ./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:

```bash
$ ./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:

```bash
$ ./manga2mobi.sh -s Goblin-Slayer -c 45 -d
```

- Download "Goblin Slayer" chapter 45 and convert it to mobi file, without keeping downloaded images:

```bash
$ ./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:

```bash
$ ./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:

```bash
$ ./manga2mobi.sh -s Onepunch-Man -c 130-133
```

- Switch manga source to kissmanga:

```bash
$ ./manga2mobi.sh -k kissmanga
```

- Customize options for `kcc-c2e`:

```bash
$ 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