max_results = 5 # example crawler = PlaywrightCrawler( headless=False, request_handler=router, ) await crawler.run([start_url])
@router.default_handler async def default_handler(context: PlaywrightCrawlingContext) -> None: max_results = ???