Skip to main content

AdaptivePlaywrightPreNavCrawlingContext

This is just wrapper around BasicCrawlingContext or AdaptivePlaywrightCrawlingContext.

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

Hierarchy

Index

Methods

__hash__

  • __hash__(): int

from_pre_navigation_context

  • from_pre_navigation_context(context): Self
  • Convenience constructor that creates new context from existing pre navigation contexts.


    Parameters

    Returns Self

Properties

add_requests

add_requests: AddRequestsFunction

Add requests crawling context helper function.

block_requests

block_requests: BlockRequestsFunction | None

Blocks network requests matching specified URL patterns.

get_key_value_store

Get key-value store crawling context helper function.

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.

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.