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

Function handler_one

tests/unit/crawlers/_basic/test_basic_crawler.py:914–918  ·  view source on GitHub ↗
(context: BasicCrawlingContext)

Source from the content-addressed store, hash-verified

912
913 @crawler.router.handler('one')
914 async def handler_one(context: BasicCrawlingContext) -> None:
915 state = await context.use_state({'hello': 'world'})
916 state_in_handler_one.update(state)
917 state['hello'] = 'new_world'
918 await context.add_requests([Request.from_url('https://crawlee.dev/docs/quick-start', label='two')])
919
920 @crawler.router.handler('two')
921 async def handler_two(context: BasicCrawlingContext) -> None:

Callers

nothing calls this directly

Calls 3

use_stateMethod · 0.80
from_urlMethod · 0.80
add_requestsMethod · 0.45

Tested by

no test coverage detected