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
fix(WebScraper): explicitly ignore 404s
Gergő Móricz677faa27f3e3
diff --git a/apps/api/src/scraper/WebScraper/single_url.ts b/apps/api/src/scraper/WebScraper/single_url.tsindex d0b7269fb..75c5da2c5 100644--- a/apps/api/src/scraper/WebScraper/single_url.ts+++ b/apps/api/src/scraper/WebScraper/single_url.ts@@ -423,7 +423,7 @@ export async function scrapSingleUrl(// NOTE: This exception for status codes may only work with fire-engine. In lieu of better error management,// it's the best we can do. - mogery- if (!text && !Object.values(errors).some(x => x.startsWith("Request failed with status code "))) {+ if (!text && !Object.values(errors).some(x => x.startsWith("Request failed with status code ") || x === "NOT FOUND")) {throw new Error(`All scraping methods failed for URL: ${urlToScrap}`);}