reduced-jade•3y ago
About define route
I'm using Crawlee for Crawler platform. I have a question: I can use routing for preNavigationHooks, failedRequestHandler... as requestHandler. If I can, how to use it for preNavigationHooks.
Thanks!
5 Replies
you need to make the logic yourself in preNavigationHooks or failedRequestHandler
both preNav and failedReq supposed to be for all requests per crawler, if you need logic there do it by
request.userData paramsreduced-jadeOP•3y ago
When I init PuppeteerCrawler constructor how to I push userData to request. I want to base on data user input to process parser?
not in constructor but in
run method
this will put https://example.com/ request with label exampleLabel to the crawler request queue
reduced-jadeOP•3y ago
Thank you