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): JsonValue
  • Parameters

    • key: str

    Returns JsonValue

__iter__

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

__len__

  • __len__(): int
  • Returns int

__setitem__

  • __setitem__(key, value): None
  • Parameters

    • key: str
    • value: JsonValue

    Returns None

Properties

__pydantic_extra__

__pydantic_extra__: dict[str, JsonValue]

pyright: ignore

crawlee_data

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

label

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

model_config

model_config: