Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update index.ts
Eric Ciarla5e8aa9278810
diff --git a/apps/api/src/scraper/WebScraper/index.ts b/apps/api/src/scraper/WebScraper/index.tsindex e8ce813bd..ef0c83976 100644--- a/apps/api/src/scraper/WebScraper/index.ts+++ b/apps/api/src/scraper/WebScraper/index.ts@@ -163,7 +163,7 @@ export class WebScraperDataProvider {inProgress?: (progress: Progress) => void): Promise<Document[]> {- const baseURLDepth = new URL(this.urls[0]).pathname.split('/').length - 2;+ const baseURLDepth = new URL(this.urls[0]).pathname.split('/').length - 1;const adjustedMaxDepth = this.maxCrawledDepth + baseURLDepth;