Skip to main content

AdaptivePlaywrightPostNavCrawlingContext

A wrapper around HttpCrawlingContext or AdaptivePlaywrightCrawlingContext.

Trying to access page on this context will raise AdaptiveContextError if wrapped context is HttpCrawlingContext.

Hierarchy

Index

Methods

__hash__

  • __hash__(): int

create_modified_copy

  • create_modified_copy(push_data, add_requests, get_key_value_store): Self
  • Create a modified copy of the crawling context with specified changes.


    Parameters

    • optionalpush_data: PushDataFunction | None = None
    • optionaladd_requests: AddRequestsFunction | None = None
    • optionalget_key_value_store: GetKeyValueStoreFromRequestHandlerFunction | None = None

    Returns Self

from_basic_crawling_context

  • from_basic_crawling_context(context, http_response): Self

from_post_navigation_context

  • async from_post_navigation_context(context): Self

get_snapshot

Properties

add_requests

add_requests: AddRequestsFunction

Add requests crawling context helper function.

get_key_value_store

Get key-value store crawling context helper function.

http_response

http_response: HttpResponse

The HTTP response received from the server.

log

log: logging.Logger

Logger instance.

page

page: Page

The Playwright Page object for the current page.

Raises AdaptiveContextError if accessed during static crawling.

proxy_info

proxy_info: ProxyInfo | None

Proxy information for the current page being processed.

push_data

push_data: PushDataFunction

Push data crawling context helper function.

request

request: Request

Request object for the current page being processed.

response

response: Response

The Playwright Response object containing the response details for the current URL.

Raises AdaptiveContextError if accessed during static crawling.

send_request

send_request: SendRequestFunction

Send request crawling context helper function.

session

session: Session | None

Session object for the current page being processed.

use_state

use_state: UseStateFunction

Use state crawling context helper function.