Kitsune

How a crawl works

kit.crawl() and the CLI return a result record with the source URL, extraction tier, verdict, reason, and any data.

Choose a transport

  1. A matching site plugin can handle the URL with its own crawl function.
  2. Otherwise, Kitsune tries HTTP. If the response contains enough useful content, it returns the HTTP result.
  3. Kitsune opens the page in Chrome when the response needs rendering or the recipe requires the browser. A recipe with a form query or forceBrowser: true starts here.

The browser may retry a failed attempt with a longer settle time. Its final result identifies the extraction path, such as browser:selectors.

Extract and classify

Chrome reads the fields or expression in the recipe, or extracts common page data such as text, headings, and links. When a selector recipe returns nothing, Kitsune can return generic data under browser:auto-fallback.

Read verdict together with tier. An ok verdict says the returned data was usable at that tier. A fallback record can be ok and still lack your recipe’s fields.

Pacing

Each session tracks a delay per host. Kitsune.launch({ paceMs }) sets the starting delay in code. Failures increase the delay and successful crawls bring it back toward the starting value. See CLI environment variables for the current behavior of CLI pacing configuration.