]> git.lizzy.rs Git - local-nhentai.git/blobdiff - scrape.js
Add scraping by tag,character,artist,group,parody
[local-nhentai.git] / scrape.js
diff --git a/scrape.js b/scrape.js
new file mode 100644 (file)
index 0000000..69c476d
--- /dev/null
+++ b/scrape.js
@@ -0,0 +1,8 @@
+const scrapeLinks = require("./scrape-links")
+const page = `https://nhentai.net/${process.argv[2]}/${process.argv[3]}/popular?page=`
+
+;(async _ => {
+       for (let i = 1; await scrapeLinks(page + i, "/g/"); i++)
+               ;
+})();
+