Skip to content

πŸ“š Comics download script. 漫画・ダウンロード・スクレむピング

Notifications You must be signed in to change notification settings

umjammer/K-AutoBook

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

K-AutoBook

Overview

πŸ“š Web comics downloader. Target is commercial web comics site, especially for free comics. Policy is images as original as possible.

Description

Downloadable sites available,

site method image note sample url
alphapolis meta direct file πŸ“– πŸ“–
ebookjapan paging screen capture login available, cookie doesn't work πŸ“–
bookpass paging canvas data πŸ“–
bookwalker paging canvas data πŸ“–
comicdays meta direct file (re-rendered) coreview πŸ“–
comicwalker meta direct file (decrypted) πŸ“–
ganganonline paging direct file (blob) πŸ“–
linemanga paging screen capture cookie available πŸ“–
webace meta direct file πŸ“–
zebrackcomic paging direct file (blob) πŸ“–
booklive paging direct file (blob, re-rendered) BinB πŸ“–
jumpplus meta direct file (re-rendered) coreview πŸ“–
magazinepocket meta direct file (re-rendered) coreview πŸ“–
kuragebunch meta direct file (re-rendered) coreview πŸ“–
cmoa paging direct file (blob, re-rendered) uses booklive manager, BinB, cookie available πŸ“–
comicaction meta direct file (re-rendered) coreview πŸ“–
piccoma paging canvas data πŸ“–
dmmbooks paging canvas data cookie available πŸ“–
sukima paging canvas data πŸ“–
tonarinoyj meta direct file (re-rendered) coreview πŸ“–
amazon paging canvas data headless doesn't work, uses profile for login πŸ“–
dlibraryjp paging canvas data cookie available πŸ“–

BinB ... θ¬›θ«‡η€Ύγ‚³γƒŸγƒƒγ‚―γƒ—γƒ©γ‚Ή, 集英瀾S-MANGA

Requirement

  • Python Python 3 (tested with 3.9.1)
  • pip (tested with 20.3.3)
  • ChromeDriver (tested with 91.0.4472.19)

Install

    $ git clone https://github.com/umjammer/K-AutoBook.git
    $ cd K-AutoBook
    $ pip install -r requirements.txt

Usage

    $ pwd
    .../K-AutoBook
    $ cp config.json.sample config.json
    $ ./k_auto_book.py
    Input URL > <specify the url or python script starts with '?'> <option>

or

    $ ./k_auto_book.py <specify the url or python script starts with '?'> <option>

Examples

As input data

Input URL > https://manga.line.me/book/viewer?id=001si9is
 οΈ™
Input URL > https://ebookjapan.yahoo.co.jp/books/154784/A002338262/
 οΈ™
Input URL > ?[f'https://web-ace.jp/youngaceup/contents/1000032/episode/{n}/' for n in range(615, 655)]

As a command line argument

$ ./k_auto_book.py 'https://zebrack-comic.com/title/1591/volume/9727' 
οΈ™
$ ./k_auto_book.py '?[f"https://booklive.jp/bviewer/s/?cid=731240_00{n}" for n in range(2, 6)]'

How To

how do i specify download directory

  • add base_directory in config.json
    "base_directory": "/Users/you/Downloads",

how do i set cookie automatically (currently mac only?)

  • remove site.cookie in config.json
  • add chrome_cookie_db in config.json
  • add site.host_key and site.top_url in config.json
    "chrome_cookie_db": "/Users/you/Library/Application Support/Google/Chrome/Default/Cookies",
     οΈ™
    "cmoa": {
         οΈ™
        "host_key": ".cmoa.jp",
        "top_url": "https://www.cmoa.jp"
    },

how do i set cookie (for windows)

  • add site.cookie and site.host_key and site.top_url in config.json
     οΈ™
    "cmoa": {
         οΈ™
        "cookie": "how to get cookie: see 'https://github.com/xuzhengyi1995/Bookwalker_Downloader'",
        "host_key": ".cmoa.jp",
        "top_url": "https://www.cmoa.jp"
    },

list coreview urls

at the developer console on a browser

var elements = document.getElementsByClassName("series-episode-list-container");
for (var i = 0; i < elements.length; i++) {
  console.log(elements[i].getAttribute('href'));
}

TODO

  • update cookie automatically on windows
  • yahoo! japan (ebookjapan) cookie

Author

kuroneko, umjammer (modifier)

About

πŸ“š Comics download script. 漫画・ダウンロード・スクレむピング

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Python 100.0%