AddRequestsFunction
Index
Methods
Methods
__call__
Call dunder method.
Parameters
requests: Sequence[str | Request]
Requests to be added to the
RequestManager
.keyword-onlyoptionallimit: int
Maximum number of requests to be enqueued.
keyword-onlyoptionalbase_url: str
Base URL to be used for relative URLs.
keyword-onlyoptionalstrategy: EnqueueStrategy
Enqueueing strategy, see the
EnqueueStrategy
enum for possible values and their meanings.keyword-onlyoptionalinclude: list[re.Pattern | Glob]
List of regular expressions or globs that URLs must match to be enqueued.
keyword-onlyoptionalexclude: list[re.Pattern | Glob]
List of regular expressions or globs that URLs must not match to be enqueued.
Returns Coroutine[None, None, None]
Function for adding requests to the
RequestManager
, with optional filtering.It simplifies the process of adding requests to the
RequestManager
. It automatically opens the specified one and adds the provided requests.