Skip to main content
Version: 0.6

BasicCrawlingContext

Basic crawling context.

It represents the fundamental crawling context used by the BasicCrawler. It is extended by more specific crawlers to provide additional functionality.

Hierarchy

Index

Methods

__hash__

  • __hash__(): int
  • Return hash of the context. Each context is considered unique.


    Returns int

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.

log

log: logging.Logger

Logger instance.

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.