createPuppeteerRouter
Callable
Type parameters
- Context: PuppeteerCrawlingContext<Dictionary, Context> = PuppeteerCrawlingContext<Dictionary>
- UserData: Dictionary = GetUserDataFromRequest<Context[request]>
Parameters
optionalroutes: RouterRoutes<Context, UserData>
Returns RouterHandler<Context>
Creates new Router instance that works based on request labels. This instance can then serve as a
requestHandler
of your PuppeteerCrawler. Defaults to the PuppeteerCrawlingContext.