Skip to main content

AddRequestsKwargs

Keyword arguments for the add_requests methods.

Hierarchy

Index

Properties

base_url

base_url: NotRequired[str]

Base URL to be used for relative URLs.

exclude

exclude: NotRequired[list[re.Pattern | Glob]]

List of regular expressions or globs that URLs must not match to be enqueued.

include

include: NotRequired[list[re.Pattern | Glob]]

List of regular expressions or globs that URLs must match to be enqueued.

limit

limit: NotRequired[int]

Maximum number of requests to be enqueued.

requests

requests: Sequence[str | Request]

Requests to be added to the RequestManager.

strategy

strategy: NotRequired[EnqueueStrategy]

Enqueueing strategy, see the EnqueueStrategy enum for possible values and their meanings.