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 crawler.ts
Nicolas90b7fff36656
diff --git a/apps/api/src/scraper/WebScraper/crawler.ts b/apps/api/src/scraper/WebScraper/crawler.tsindex 2e2dec2bb..5003845ec 100644--- a/apps/api/src/scraper/WebScraper/crawler.ts+++ b/apps/api/src/scraper/WebScraper/crawler.ts@@ -418,7 +418,7 @@ export class WebCrawler {const normalizedUrl = normalizeUrl(url);const normalizedSitemapLinks = sitemapLinks.map(link => normalizeUrl(link));-+ // has to be greater than 0 to avoid adding the initial URL to the sitemap links, and preventing crawler to crawlif (!normalizedSitemapLinks.includes(normalizedUrl) && sitemapLinks.length > 0) {sitemapLinks.push(url);}