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
minor spacing and comment stuff
rafaelsideguide4d6e25619b5c
diff --git a/apps/api/src/scraper/WebScraper/crawler.ts b/apps/api/src/scraper/WebScraper/crawler.tsindex 29baa1ce3..831970ea3 100644--- a/apps/api/src/scraper/WebScraper/crawler.ts+++ b/apps/api/src/scraper/WebScraper/crawler.ts@@ -283,24 +283,22 @@ export class WebCrawler {const path = urlObj.pathname;- if(this.isInternalLink(fullUrl)){ // INTERNAL LINKS+ if (this.isInternalLink(fullUrl)) { // INTERNAL LINKSif (this.isInternalLink(fullUrl) &&this.noSections(fullUrl) &&- // The idea here to comment this out is to allow wider website coverage as we filter this anyway afterwards- // this.matchesIncludes(path) &&!this.matchesExcludes(path) &&this.isRobotsAllowed(fullUrl)) {links.push({ url: fullUrl, html: content, pageStatusCode, pageError });}- }else{ // EXTERNAL LINKS- if(- this.isInternalLink(url) && //its avoid to add links from external pages on the queue+ } else { // EXTERNAL LINKS+ if (+ this.isInternalLink(url) &&this.allowExternalContentLinks &&!this.isSocialMediaOrEmail(fullUrl) &&!this.matchesExcludes(fullUrl, true) &&!this.isExternalMainPage(fullUrl)- ){+ ) {links.push({ url: fullUrl, html: content, pageStatusCode, pageError });}}