This commit is contained in:
dervperson 2025-01-31 21:05:17 -05:00
parent 7a126c4b10
commit 07c34a1c4c

View file

@ -26,8 +26,8 @@ async function urlCollector(url, path, file, useLimit) {
let links = body('a'); let links = body('a');
let urls = []; let urls = [];
links.each(function(i, link) { links.each(function(i, link) {
console.log(`User ${url} has ${i} pages calculated`);
if (useLimit && urls.length >= pageLimit * 40) return; if (useLimit && urls.length >= pageLimit * 40) return;
console.log(`User ${url} has ${i} pages calculated`);
let h = body(link).attr('href'); let h = body(link).attr('href');
if (!h) return; if (!h) return;