AdaptivePlaywrightPostNavCrawlingContext
Hierarchy
- HttpCrawlingContext
- AdaptivePlaywrightPostNavCrawlingContext
Index
Methods
__hash__
Return hash of the context. Each context is considered unique.
Returns int
create_modified_copy
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
Initialize a new instance from an existing
BasicCrawlingContext.Parameters
context: BasicCrawlingContext
http_response: HttpResponse
Returns Self
from_post_navigation_context
Initialize a new instance from an existing post-navigation context.
Parameters
Returns Self
get_snapshot
Get snapshot of crawled page.
Returns PageSnapshot
Properties
add_requests
Add requests crawling context helper function.
get_key_value_store
Get key-value store crawling context helper function.
http_response
The HTTP response received from the server.
log
Logger instance.
page
The Playwright Page object for the current page.
Raises AdaptiveContextError if accessed during static crawling.
proxy_info
Proxy information for the current page being processed.
push_data
Push data crawling context helper function.
request
Request object for the current page being processed.
response
The Playwright Response object containing the response details for the current URL.
Raises AdaptiveContextError if accessed during static crawling.
send_request
Send request crawling context helper function.
session
Session object for the current page being processed.
use_state
Use state crawling context helper function.
A wrapper around HttpCrawlingContext or AdaptivePlaywrightCrawlingContext.
Trying to access
pageon this context will raise AdaptiveContextError if wrapped context is HttpCrawlingContext.