get comics
1.0.0
get-comics
是一个从网站 https://getcomics.org 下载漫画列表的工具。
它基于 Gink3 的 ComicScraper 包。
该包是使用 Node.js 构建的,并且需要 Node v12.17 或更高版本才能运行,因为它使用 ES 模块。
要全局安装该命令,请运行以下命令:
npm i -g 获取漫画
要将漫画下载到当前目录,请在任意位置运行以下命令:
获取漫画
您可以使用这些标志过滤要下载的漫画并确定要下载的页数:
Basic Options -h, --help Display this usage guide. -o, --output string The location to store the resulting files in. If the directory does not exist, it will be created. Defaults to the current directory. -w, --overwrite If passed, new comics with the same filenames will overwrite existing files with the same names. -l, --save-links When passed, a file named links_.json will be saved in the same directory as the downloaded comics. -b, --base-url string The base URL to use for downloading comics. This should only be changed if the GetComics site changes its domain. Selection Options -p, --pages number The total number of pages to download, starting from the most recently uploaded. If you pass 0, all available pages will be downloaded. -s, --start number The page to start parsing comic links on. Filter Options -u, --url string A specific GetComics page URL to download all comics from. If this option is passed, most other selection options will be ignored. ex. https://getcomics.org/other-comics/gideon-falls-deluxe-edition-book-1- the-legend-of-the-black-barn-2021/ -q, --query string A search query to filter comics with. ex. "Donald Duck" -t, --tag string A GetComics specific tag page to download comics with. This can be found in the URL of the site at /tag/ . ex. "the-walking-dead" or "superman" -c, --category string A GetComics specific category for comics. This can be found in the URL of the site at /cat/ ex. "dc" or "marvel" Processing Options --no-extract By default any .zip archives containing a collection of comics will be extracted and the archive file will be removed. If this option is passed, the archive file will be left as is. -z, --cbz Convert any downloaded .cbr files to .cbz
将整个 Marvel 存档下载到comics
根文件夹:
获取漫画 -c marvel -p 0 -o "~/comics"
从主页下载最新5页漫画:
获取漫画-p 5
下载带有“行尸走肉”标签的最新漫画页面:
获取漫画——标记行尸走肉
为了在您自己的节点应用程序中使用此包,您可以像这样安装和使用它:
npm install 获取漫画
import getComics from "get-comics";async function downloadAllComics() { wait getComics({ pages: 3, tag: "superman", noExtract: true, saveLinks: true, }); console.log("漫画下载完成");}downloadAllComics();