Fixed session reuse in Aylo scraper.
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user