type Data* = ref object
jaTitle*: JaTitle
enTitle*: EnTitle
uploadDate*: UploadDate
lang*: Lang
thumbnail*: Thumbnail
url*: Url
artists*: Artists
groups*: Groups
parodies*: Parodies
tags*: Tags
imageList*: ImageList
totalPages*: inttype ErocoolAPI* = ref object
scraper: Scraper
data: Dataproc newErocoolAPI*(url: string, ua: string = ""): ErocoolAPIproc reset*(self: ErocoolAPI, url: string)proc download*(self: ErocoolAPI, start: int = 1, last: int = -1, output: string = "./", name: string = "")proc getAllInfo*(self: ErocoolAPI): JsonNodeproc getInfoBySpecifyingKey*(self: ErocoolAPI, key: string): JsonNode Nothing out of the ordinary, pure download.
erocoolAPI 'https://ja.erocool.com/detail/xxxxxxx.html'You can specify the start number, end number, destination, and directory name.
erocoolAPI 'https://ja.erocool.com/detail/xxxxxxx.html' -s 5 -e 10 -o ~/Downloads/Mangas -n 'xxxxx'User-Agent can be specified.
erocoolAPI 'https://ja.erocool.com/detail/xxxxxxx.html' --ua "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6)" $ ./erocoolAPI -h
Usage:
mangaDownload [optional-params] [args: string...]
Download the cartoon at the URL set in the constructor of the Scraper object.
Options:
-h, --help print this cligen-erated help
--help-syntax advanced: prepend,plurals,..
-s=, --start= int 1 Specify the first page number to start downloading.
-e=, --last= int -1 Specify the last page number to finish downloading.
-o=, --output= string "./" Output directory
-n=, --name= string "" Directory name
-u=, --ua= string "" User-Agent
-v, --info bool false No download mode.
-b, --debug bool false Do not output less than error logs.You will need to install mingw from the following site and set the environment variables. https://nim-lang.org/install_windows.html
Alternatively, we recommend running binaries for Linux on WSLs.
- v0.1.51 Improved download process. Added options.
- v0.1.5 Support for okhentai.
- v0.1.4 Support for IMhentai。Improved e-hentai download process.
- v0.1.3b Increased e-hentai download speed up to 2x.
- v0.1.3 Compatible with NIJIERO.
- v0.1.2 Support for e-hentai.