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

Function handler_three

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

Source from the content-addressed store, hash-verified

925
926 @crawler.router.handler('three')
927 async def handler_three(context: BasicCrawlingContext) -> None:
928 state = await context.use_state({'hello': 'world'})
929 state_in_handler_three.update(state)
930
931 await crawler.run([Request.from_url('https://crawlee.dev/', label='one')])
932 await crawler.run([Request.from_url('https://crawlee.dev/docs/examples', label='three')])

Callers

nothing calls this directly

Calls 1

use_stateMethod · 0.80

Tested by

no test coverage detected