GithubHelp home page GithubHelp logo

kevcui / manga2mobi Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 1.0 33 KB

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

License: Do What The F*ck You Want To Public License

Shell 100.00%
manga manga-downloader manga-scraper mangalife kindle mobile bash bash-script kissmanga kissmanga-downloader

manga2mobi's Introduction

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

manga2mobi's People

Contributors

kevcui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

andreafra

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.