Skip to main content
Version: Next

matchesEnqueueStrategy

Callable

  • matchesEnqueueStrategy(strategy, target, origin): boolean

  • Check whether target matches origin under the given enqueue strategy. The URL scheme is not considered here (use filterUrl for the combined scheme + strategy check).

    The enqueueLinks implementation in @crawlee/core matches the same strategies via glob patterns (see packages/core/src/enqueue_links/enqueue_links.ts) — keep the two in sync when changing either.


    Parameters

    • strategy: EnqueueStrategy | all | same-domain | same-hostname | same-origin
    • target: URL
    • origin: URL

    Returns boolean