Closed Lusitaniae closed 3 years ago
Hi @Lusitaniae!
You forgot to add return await crawl()
in your customCrawl
function:
async function customCrawl(page, crawl) {
await page.setRequestInterception(true);
page.on('request', (request) => {
console.log(request)
if (request.resourceType() === 'image') request.abort();
else request.continue();
});
return await crawl()
}
Did it help? Closing the issue?
closing due to inactivity. Presumably, resolved.
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce
What is the expected behavior?
Using the code snipper above I expect to be able to crawl a website without loading images. This logic comes from pupetteer
What is the motivation / use case for changing the behavior?
Reduce bandwidth usage from crawling
Please tell us about your environment: