Skip to main content

EnqueueLinksFunction

crawlee._types.EnqueueLinksFunction

Type of a function for enqueueing links based on a selector.

Args: selector: CSS selector used to find the elements containing the links. label: Label for the newly created Request objects, used for request routing. user_data: User data to be provided to the newly created Request objects. **kwargs: Additional arguments for the add_requests method.

Index

Methods

Methods

__call__

  • __call__(*, selector, label, user_data, kwargs): Coroutine[None, None, None]
  • Parameters

    • selector: str = 'a'keyword-only
    • label: str | None = Nonekeyword-only
    • user_data: dict[str, Any] | None = Nonekeyword-only
    • kwargs: Unpack[AddRequestsKwargs]

    Returns Coroutine[None, None, None]