fix
This commit is contained in:
parent
7a126c4b10
commit
07c34a1c4c
1 changed files with 1 additions and 1 deletions
2
site.js
2
site.js
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue