diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-05-14 21:21:59 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-05-14 21:21:59 +0200 |
commit | 8a0a187b31a3e0e9b9faed1369441576a2b1d103 (patch) | |
tree | 842401b73c051439926b139657310cd9719af310 /wholesome.js | |
parent | e9c34b2a539052ca82eebc6c1d474d59c6ec6690 (diff) | |
download | local-nhentai-8a0a187b31a3e0e9b9faed1369441576a2b1d103.tar.xz |
Add scraping by tag,character,artist,group,parody
Diffstat (limited to 'wholesome.js')
-rw-r--r-- | wholesome.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/wholesome.js b/wholesome.js deleted file mode 100644 index 551fb82..0000000 --- a/wholesome.js +++ /dev/null @@ -1,24 +0,0 @@ -const fetch = require("node-fetch") -const child = require("child_process") - -const link = "https://nhentai.net/g/" -const ids = [] - -fetch("https://wholesomelist.com/list") - .then(data => data.text()) - .then(data => { - while (true) { - const pos = data.search(link) - - if (pos == -1) - break; - - data = data.slice(pos + link.length) - const id = parseInt(data) - if (id) - ids.push(id) - } - - child.spawn("nhentai", ["--id", ids.join(",")], { stdio: "inherit" }) - }) - |