The CrawlerForm component manages the configuration and execution state of the SiteOne Crawler. It provides a structured interface to set parameters for crawling depth, device types, resource filtering, and output formats.
Key configuration categories include:
- Basic Settings: Max depth, device type (desktop, tablet, mobile), user agent, timeout, proxy, and concurrency (workers/requests per second).
- Resource Filtering: Options to disable specific assets like JavaScript, CSS, fonts, images, or files, and to restrict crawling to specific domains.
- Output Settings: Configuration for HTML, JSON, or Text reports, and display options for the console output.
- Advanced/Expert Settings: Memory limits, domain resolution, regex filtering (include/ignore), and storage types (memory vs file).
- Website Clone Options: Settings for generating an offline version of a website, including content replacement and code removal.
// Example of the shape of the configuration object used by the form
const formData = {
url: 'https://example.com',
maxDepth: 2,
device: 'desktop',
workers: 3,
disableJavascript: true,
resultStorage: 'file',
outputHtmlReport: '/path/to/report.html'
};