Skip to main content

UserData

Represents the user_data part of a Request.

Apart from the well-known attributes (label and __crawlee), it can also contain arbitrary JSON-compatible values.

Index

Methods

__delitem__

  • __delitem__(*, key): None
  • Parameters

    • optionalkeyword-onlykey: str

    Returns None

__eq__

  • __eq__(*, other): bool
  • Parameters

    • optionalkeyword-onlyother: object

    Returns bool

__getitem__

  • __getitem__(*, key): JsonSerializable
  • Parameters

    • optionalkeyword-onlykey: str

    Returns JsonSerializable

__iter__

  • __iter__(): Iterator[str]
  • Returns Iterator[str]

__len__

  • __len__(): int
  • Returns int

__setitem__

  • __setitem__(*, key, value): None
  • Parameters

    • optionalkeyword-onlykey: str
    • optionalkeyword-onlyvalue: JsonSerializable

    Returns None

Properties

__pydantic_extra__

__pydantic_extra__: dict[str, JsonSerializable]

crawlee_data

crawlee_data: CrawleeRequestData | None

Crawlee-specific configuration stored in the user_data.

label

label: str | None

Label used for request routing.

model_config

model_config: Undefined