Skip to content

Types

BrowserAction module-attribute

BrowserAction = Annotated[
    Union[
        ClickAction,
        WaitAction,
        WaitSelectorAction,
        ScrollXAction,
        ScrollYAction,
        ScrollToAction,
        FillAction,
        ExecuteAction,
        ScreenShotAction,
        WaitForRequestCompletionAction,
    ],
    Field(discriminator="action"),
]

Defines the valid types that can be passed to the play_with_browser parameter in the RequestParameters model

RegionCodeType module-attribute

RegionCodeType = Literal[
    "europe",
    "asiaafricaoceania",
    "northamerica",
    "southamerica",
]

Defines the valid strings that can be passed to the regional_geo_code parameter in the RequestParameters model

WaitUntilType module-attribute

WaitUntilType = Literal[
    "domcontentloaded",
    "networkidle0",
    "networkidle2",
    "load",
]

Defines the valid strings that can be passed to the wait_until parameter in the RequestParameters model

DeviceType module-attribute

DeviceType = Literal['desktop', 'mobile', 'tablet']

Defines the valid strings that can be passed to the device parameter in the RequestParameters model

OutputType module-attribute

OutputType = Literal['raw', 'markdown']

Defines the valid strings that can be passed to the output parameter in the RequestParameters model

HttpMethod module-attribute

HttpMethod = Literal[
    "GET",
    "POST",
    "PUT",
    "PATCH",
    "DELETE",
    "HEAD",
    "OPTIONS",
]

Defines the valid HTTP methods that can be passed to the method parameter in the PreparedScrapeDoRequest model

PayloadType module-attribute

PayloadType = Literal['json', 'form', 'raw']

Defines the valid types of payload that can be passed to the payload_type parameter in the PreparedScrapeDoRequest model