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

Function handler_two

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

Source from the content-addressed store, hash-verified

919
920 @crawler.router.handler('two')
921 async def handler_two(context: BasicCrawlingContext) -> None:
922 state = await context.use_state({'hello': 'world'})
923 state_in_handler_two.update(state)
924 state['hello'] = 'last_world'
925
926 @crawler.router.handler('three')
927 async def handler_three(context: BasicCrawlingContext) -> None:

Callers

nothing calls this directly

Calls 1

use_stateMethod · 0.80

Tested by

no test coverage detected