◐ Shell
clean mode source ↗

UseStateFunction | API | Crawlee for Python · Fast, reliable Python web crawlers.

A function for managing state within the crawling context.

It allows the use of persistent state across multiple crawls.

Warning

This is an experimental feature. The behavior and interface may change in future versions.

Index

Methods

__call__

  • __call__(default_value): Coroutine[None, None, MutableMapping[str, JsonSerializable]]

  • 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]]