I want to process requests with label 'search' with a playwright crawler, and process…
- User
I want to process requests with label 'search' with a playwright crawler, and process requests with label 'ad' with a cheerio crawler. The playwright will enqueue all 'ad' requests because the cheerio won't have any start urls.
Assistant
To achieve this, you can use the
Routerclass provided by Crawlee to route requests to different crawlers based on their labels. Here's an example code snippet that demonstrates how to do this:javascript
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.