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
Nick: errors -> warn
Nicolasc6cad942ab81
diff --git a/apps/api/src/scraper/WebScraper/crawler.ts b/apps/api/src/scraper/WebScraper/crawler.tsindex 5f26f817c..ba4793d87 100644--- a/apps/api/src/scraper/WebScraper/crawler.ts+++ b/apps/api/src/scraper/WebScraper/crawler.ts@@ -456,7 +456,7 @@ export class WebCrawler {}}).filter(x => x !== null) as string[])];} catch (error) {- this.logger.error("Failed to call html-transformer! Falling back to cheerio...", {+ this.logger.warn("Failed to call html-transformer! Falling back to cheerio...", {error,module: "scrapeURL", method: "extractMetadata"});diff --git a/apps/api/src/scraper/scrapeURL/lib/extractLinks.ts b/apps/api/src/scraper/scrapeURL/lib/extractLinks.tsindex ef784a713..48117ae76 100644--- a/apps/api/src/scraper/scrapeURL/lib/extractLinks.ts+++ b/apps/api/src/scraper/scrapeURL/lib/extractLinks.ts@@ -41,7 +41,7 @@ export async function extractLinks(html: string, baseUrl: string): Promise<strintry {return await extractLinksRust(html, baseUrl);} catch (error) {- logger.error("Failed to call html-transformer! Falling back to cheerio...", {+ logger.warn("Failed to call html-transformer! Falling back to cheerio...", {error,module: "scrapeURL", method: "extractLinks"});diff --git a/apps/api/src/scraper/scrapeURL/lib/extractMetadata.ts b/apps/api/src/scraper/scrapeURL/lib/extractMetadata.tsindex 858b7c290..e0d68534d 100644--- a/apps/api/src/scraper/scrapeURL/lib/extractMetadata.ts+++ b/apps/api/src/scraper/scrapeURL/lib/extractMetadata.ts@@ -26,7 +26,7 @@ export async function extractMetadata(try {return await extractMetadataRust(meta, html);} catch (error) {- meta.logger.error("Failed to call html-transformer! Falling back to cheerio...", {+ meta.logger.warn("Failed to call html-transformer! Falling back to cheerio...", {error,module: "scrapeURL", method: "extractMetadata"});diff --git a/apps/api/src/scraper/scrapeURL/lib/removeUnwantedElements.ts b/apps/api/src/scraper/scrapeURL/lib/removeUnwantedElements.tsindex 9e5ac2151..693b02bba 100644--- a/apps/api/src/scraper/scrapeURL/lib/removeUnwantedElements.ts+++ b/apps/api/src/scraper/scrapeURL/lib/removeUnwantedElements.ts@@ -65,7 +65,7 @@ export const htmlTransform = async (only_main_content: scrapeOptions.onlyMainContent,})} catch (error) {- logger.error("Failed to call html-transformer! Falling back to cheerio...", {+ logger.warn("Failed to call html-transformer! Falling back to cheerio...", {error,module: "scrapeURL", method: "extractLinks"});