MCPcopy Create free account
hub / github.com/apify/crawlee-python / handler

Function handler

tests/unit/crawlers/_parsel/test_parsel_crawler.py:398–400  ·  view source on GitHub ↗
(context: ParselCrawlingContext)

Source from the content-addressed store, hash-verified

396
397 @crawler.router.default_handler
398 async def handler(context: ParselCrawlingContext) -> None:
399 visit_urls.add(context.request.url)
400 await context.enqueue_links(rq_id=queue_id, rq_name=queue_name, rq_alias=queue_alias)
401
402 await crawler.run([str(server_url / 'start_enqueue')])
403

Callers 1

request_handlerFunction · 0.70

Calls 2

enqueue_linksMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected