FunctionsUseStateFunctionOn this pageUseStateFunction A function for managing state within the crawling context. It allows the use of persistent state across multiple crawls.Index Methods__call__Methods __call__ __call__(*, default_value): Coroutine[None, None, dict[str, JsonSerializable]]Call dunder method.Parametersoptionalkeyword-onlydefault_value: dict[str, JsonSerializable] | None = NoneThe default value to initialize the state if it is not already set.Returns Coroutine[None, None, dict[str, JsonSerializable]]
A function for managing state within the crawling context.
It allows the use of persistent state across multiple crawls.