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();