forked from DebaucheryLibrarian/traxxx
Fixed session reuse in Aylo scraper.
This commit is contained in:
parent
353fe6d6f8
commit
9ea317939b
|
@ -299,7 +299,7 @@ async function fetchLatest(site, page = 1, options) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { instanceToken } = options.beforeNetwork?.headers?.Instance
|
const { instanceToken } = options.beforeNetwork?.instanceToken
|
||||||
? options.beforeNetwork
|
? options.beforeNetwork
|
||||||
: await getSession(site, options.parameters, url);
|
: await getSession(site, options.parameters, url);
|
||||||
|
|
||||||
|
|
|
@ -330,8 +330,6 @@ async function request(method = 'get', url, body, requestOptions = {}, limiter)
|
||||||
return bypassCloudflareRequest(url, method, body, withCloudflareBypass, options);
|
return bypassCloudflareRequest(url, method, body, withCloudflareBypass, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(url, options);
|
|
||||||
|
|
||||||
const res = await (body
|
const res = await (body
|
||||||
? http[method](url, body, options)
|
? http[method](url, body, options)
|
||||||
: http[method](url, options));
|
: http[method](url, options));
|
||||||
|
|
Loading…
Reference in New Issue