Skip to main content
  • Type: function
By default, the crawler adds URLs to the queue based on pathsToMatch, fileTypesToMatch, and exclusionPatterns. To customize this behavior, define a linkExtractor function. This function runs on every crawled page and returns a list of URLs as strings.

Examples

JavaScript
JavaScript
JavaScript

Parameters

object
A Cheerio instance with the HTML of the crawled page.
function
The default extractor function.
URL
URL object of the crawled page.
Last modified on May 19, 2026