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(v1): includeTags
rafaelsideguide5cbf0dcaf5b5
diff --git a/apps/api/src/scraper/WebScraper/index.ts b/apps/api/src/scraper/WebScraper/index.tsindex 24b712354..44a90b85a 100644--- a/apps/api/src/scraper/WebScraper/index.ts+++ b/apps/api/src/scraper/WebScraper/index.ts@@ -582,8 +582,9 @@ export class WebScraperDataProvider {this.pageOptions = {onlyMainContent: options.pageOptions?.onlyMainContent ?? false,includeHtml: options.pageOptions?.includeHtml ?? false,- replaceAllPathsWithAbsolutePaths: options.pageOptions?.replaceAllPathsWithAbsolutePaths ?? false,+ replaceAllPathsWithAbsolutePaths: options.pageOptions?.replaceAllPathsWithAbsolutePaths ?? true,parsePDF: options.pageOptions?.parsePDF ?? true,+ onlyIncludeTags: options.pageOptions?.onlyIncludeTags ?? [],removeTags: options.pageOptions?.removeTags ?? [],includeMarkdown: options.pageOptions?.includeMarkdown ?? true,includeRawHtml: options.pageOptions?.includeRawHtml ?? false,diff --git a/apps/api/src/scraper/WebScraper/single_url.ts b/apps/api/src/scraper/WebScraper/single_url.tsindex 59afde16d..781d7026a 100644--- a/apps/api/src/scraper/WebScraper/single_url.ts+++ b/apps/api/src/scraper/WebScraper/single_url.ts@@ -138,9 +138,10 @@ export async function scrapSingleUrl(fullPageScreenshot: pageOptions.fullPageScreenshot ?? false,headers: pageOptions.headers ?? undefined,includeLinks: pageOptions.includeLinks ?? true,- replaceAllPathsWithAbsolutePaths: pageOptions.replaceAllPathsWithAbsolutePaths ?? false,+ replaceAllPathsWithAbsolutePaths: pageOptions.replaceAllPathsWithAbsolutePaths ?? true,parsePDF: pageOptions.parsePDF ?? true,removeTags: pageOptions.removeTags ?? [],+ onlyIncludeTags: pageOptions.onlyIncludeTags ?? [],}if (extractorOptions) {