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%