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

Function request_handler

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

Source from the content-addressed store, hash-verified

24
25 @crawler.router.default_handler
26 async def request_handler(context: ParselCrawlingContext) -> None:
27 links = context.selector.css('a::attr(href)').getall()
28 await handler(links)
29
30 await crawler.run([str(server_url / 'start_enqueue')])
31

Callers

nothing calls this directly

Calls 5

GlobClass · 0.90
enqueue_linksMethod · 0.80
from_urlMethod · 0.80
handlerFunction · 0.70
extract_linksMethod · 0.45

Tested by

no test coverage detected