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
Fixed includeHTML to use cleanedHtml as response
rafaelsideguide9c539e911372
diff --git a/apps/api/package.json b/apps/api/package.jsonindex 407f4c55f..0668f6636 100644--- a/apps/api/package.json+++ b/apps/api/package.json@@ -12,6 +12,7 @@"build": "tsc","test": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false --testPathIgnorePatterns='src/__tests__/e2e_noAuth/*'","test:local-no-auth": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false --testPathIgnorePatterns='src/__tests__/e2e_withAuth/*'",+ "test:full": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false --testPathIgnorePatterns='(src/__tests__/e2e_noAuth|src/__tests__/e2e_withAuth)'","test:prod": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false --testPathIgnorePatterns='(src/__tests__/e2e_noAuth|src/__tests__/e2e_full_withAuth)'","workers": "nodemon --exec ts-node src/services/queue-worker.ts","worker:production": "node dist/src/services/queue-worker.js",diff --git a/apps/api/src/scraper/WebScraper/single_url.ts b/apps/api/src/scraper/WebScraper/single_url.tsindex e112cd451..3c7222c43 100644--- a/apps/api/src/scraper/WebScraper/single_url.ts+++ b/apps/api/src/scraper/WebScraper/single_url.ts@@ -401,7 +401,7 @@ export async function scrapSingleUrl(return {text: await parseMarkdown(cleanedHtml),- html: scraperResponse.text,+ html: cleanedHtml,screenshot: scraperResponse.screenshot,pageStatusCode: scraperResponse.metadata.pageStatusCode,pageError: scraperResponse.metadata.pageError || undefined@@ -428,7 +428,7 @@ export async function scrapSingleUrl(if (existingHtml && existingHtml.trim().length >= 100) {let cleanedHtml = removeUnwantedElements(existingHtml, pageOptions);text = await parseMarkdown(cleanedHtml);- html = existingHtml;+ html = cleanedHtml;break;}