Skip to main content

UserData

crawlee._request.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

    • key: str

    Returns None

__eq__

  • __eq__(other): bool
  • Parameters

    • other: object

    Returns bool

__getitem__

  • __getitem__(key): JsonSerializable
  • Parameters

    • key: str

    Returns JsonSerializable

__iter__

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

__len__

  • __len__(): int
  • Returns int

__setitem__

  • __setitem__(key, value): None
  • Parameters

    • key: str
    • value: JsonSerializable

    Returns None

Properties

__pydantic_extra__

__pydantic_extra__: dict[str, JsonSerializable]

pyright: ignore

crawlee_data

crawlee_data: Annotated[CrawleeRequestData | None, Field(alias='__crawlee')]

label

label: Annotated[str | None, Field()]

model_config

model_config: