UseStateFunction
Index
Methods
Methods
__call__
Call dunder method.
Parameters
optionaldefault_value: MutableMapping[str, JsonSerializable] | None = None
The default value to initialize the state if it is not already set.
Returns Coroutine[None, None, MutableMapping[str, JsonSerializable]]
The current state.
A function for managing state within the crawling context.
It allows the use of persistent state across multiple crawls.
This is an experimental feature. The behavior and interface may change in future versions.