ridinwithaydin
09/06/2025, 2:49 PM...(crawlerType === 'playwright' ? { launchContext: getLaunchContext() } : {}),
Or like:
if (crawlerType === 'cheerio') {
request.headers = headers;
} else { // playwright crawler
// Set headers in Playwright context
await page.setExtraHTTPHeaders(headers);
And it got me thinking, why doesn't Crawlee have a generalized crawler for this exact purpose? Similar to your adaptive crawler but less opaque. I cant tell why or when that adaptive crawler will use cheerio. I want ALL requests to start on cheerio and only failed ones (failed based on my crawling logic that I expect to be present in the page) to go to Playwright. Thanks!ridinwithaydin
09/06/2025, 2:55 PMolegv._apify
09/08/2025, 2:42 PM