0

Update single_url.ts

This commit is contained in:
rafaelsideguide 2024-06-03 15:24:40 -03:00
parent 3ea801d9dd
commit 1fc3a15149

View File

@ -282,8 +282,8 @@ export async function scrapSingleUrl(
// Check for custom scraping conditions // Check for custom scraping conditions
const customScrapedContent = await handleCustomScraping(text, url); const customScrapedContent = await handleCustomScraping(text, url);
if (customScrapedContent) { if (customScrapedContent) {
text = customScrapedContent[0]; text = customScrapedContent.html;
screenshot = customScrapedContent[1]; screenshot = customScrapedContent.screenshot;
} }
//* TODO: add an optional to return markdown or structured/extracted content //* TODO: add an optional to return markdown or structured/extracted content