feat: add AI service for content extraction and Browserless service for web scraping

This commit is contained in:
Michael committed 2025-11-29 09:46:29 +01:00
1 parent 86559ff2d7
commit f665a000af
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -185,7 +185,7 @@ class BrowserlessService:
filename = f"{safe_name}_{timestamp}.jpg"
screenshot_path = f"{screenshots_dir}/{filename}"
await page.screenshot(path=screenshot_path, full_page=True, quality=80, type="jpeg")
await page.screenshot(path=screenshot_path, full_page=False, quality=80, type="jpeg")
logger.info(f"Screenshot saved to {screenshot_path}")
except Exception as e:
logger.warning(f"Failed to take screenshot: {e}")