]> git.lizzy.rs Git - local-nhentai.git/blobdiff - wholesome.js
Add scraping by tag,character,artist,group,parody
[local-nhentai.git] / wholesome.js
diff --git a/wholesome.js b/wholesome.js
deleted file mode 100644 (file)
index 551fb82..0000000
+++ /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" })
-       })
-