MCPcopy
hub / github.com/firecrawl/firecrawl / toV0CrawlerOptions

Function toV0CrawlerOptions

apps/api/src/controllers/v2/types.ts:1553–1575  ·  view source on GitHub ↗
(x: CrawlerOptions)

Source from the content-addressed store, hash-verified

1551}
1552
1553export function toV0CrawlerOptions(x: CrawlerOptions) {
1554 return {
1555 includes: x.includePaths,
1556 excludes: x.excludePaths,
1557 maxCrawledLinks: x.limit,
1558 maxDepth: 9999,
1559 limit: x.limit,
1560 generateImgAltText: false,
1561 allowBackwardCrawling: x.crawlEntireDomain,
1562 allowExternalContentLinks: x.allowExternalLinks,
1563 allowSubdomains: x.allowSubdomains,
1564 ignoreRobotsTxt: x.ignoreRobotsTxt,
1565 robotsUserAgent: x.robotsUserAgent,
1566 ignoreSitemap: x.sitemap === "skip",
1567 sitemapOnly: x.sitemap === "only",
1568 deduplicateSimilarURLs: x.deduplicateSimilarURLs,
1569 ignoreQueryParameters: x.ignoreQueryParameters,
1570 regexOnFullURL: x.regexOnFullURL,
1571 maxDiscoveryDepth: x.maxDiscoveryDepth,
1572 currentDiscoveryDepth: 0,
1573 delay: x.delay,
1574 };
1575}
1576
1577export function toV2CrawlerOptions(x: any): CrawlerOptions {
1578 return {

Callers 5

crawlMonitorControllerFunction · 0.90
crawlControllerFunction · 0.90
processPrecrawlJobFunction · 0.90
runCrawlTargetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…