Skip to main content

AddRequestsFunction

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.

Index

Methods

Methods

__call__

  • __call__(*, requests, kwargs): Coroutine[None, None, None]
  • Call dunder method.


    Parameters

    • optionalkeyword-onlyrequests: Sequence[(str | BaseRequestData) | Request]

      Requests to be added to the RequestManager.

    • keyword-onlylimit: int

      Maximum number of requests to be enqueued.

    • keyword-onlybase_url: str

      Base URL to be used for relative URLs.

    • keyword-onlystrategy: EnqueueStrategy

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

    • keyword-onlyinclude: list[re.Pattern | Glob]

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

    • keyword-onlyexclude: list[re.Pattern | Glob]

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

    Returns Coroutine[None, None, None]

Page Options