Skip to main content

SessionModel

crawlee.sessions._models.SessionModel

Model for a Session object.

Index

Errors

error_score

error_score: Annotated[float, Field(alias='errorScore')]

error_score_decrement

error_score_decrement: Annotated[float, Field(alias='errorScoreDecrement')]

max_error_score

max_error_score: Annotated[float, Field(alias='maxErrorScore')]

Methods

parse_max_age

  • parse_max_age(value): timedelta
  • Try to parse max_age field into a timedelta object.


    Parameters

    • value: Any

    Returns timedelta

Properties

blocked_status_codes

blocked_status_codes: Annotated[list[int], Field(alias='blockedStatusCodes')]

cookies

cookies: Annotated[dict, Field(alias='cookies')]

created_at

created_at: Annotated[datetime, Field(alias='createdAt')]

id

id: Annotated[str, Field(alias='id')]

max_age

max_age: Annotated[timedelta, Field(alias='maxAge')]

max_usage_count

max_usage_count: Annotated[int, Field(alias='maxUsageCount')]

model_config

model_config:

usage_count

usage_count: Annotated[int, Field(alias='usageCount')]

user_data

user_data: Annotated[dict, Field(alias='userData')]