CrawlPolicy
Crawl bounds: how many link hops from the listed paths, and how many pages the crawl may add.
Crawl bounds: how many link hops from the listed paths, and how many pages the crawl may add.
Import#
ts
import type { CrawlPolicy } from "@shadow-js/dusk/static";
Signature#
ts
interface CrawlPolicy {
/** Link hops from the listed paths. `1` renders the listed paths and the pages they link to. */
readonly depth: number;
/** Most pages the crawl may add beyond the listed paths. */
readonly limit: number;
}
Members#
| Name | Type | Description |
|---|---|---|
depth |
readonly depth: number |
Link hops from the listed paths. 1 renders the listed paths and the pages they link to. |
limit |
readonly limit: number |
Most pages the crawl may add beyond the listed paths. |