AdaptivePlaywrightPreNavCrawlingContext
Hierarchy
- BasicCrawlingContext
- AdaptivePlaywrightPreNavCrawlingContext
Index
Methods
__hash__
Return hash of the context. Each context is considered unique.
Returns int
from_pre_navigation_context
Convenience constructor that creates new context from existing pre navigation contexts.
Parameters
context: BasicCrawlingContext
Returns Self
Properties
add_requests
Add requests crawling context helper function.
block_requests
Blocks network requests matching specified URL patterns.
get_key_value_store
Get key-value store crawling context helper function.
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.
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.
This is just wrapper around BasicCrawlingContext or AdaptivePlaywrightCrawlingContext.
Trying to access
page
on this context will raise AdaptiveContextError if wrapped context is BasicCrawlingContext.