diff --git a/tools/lib/puppeteer.js b/tools/lib/puppeteer.js index d34a2f19..4041631d 100644 --- a/tools/lib/puppeteer.js +++ b/tools/lib/puppeteer.js @@ -10,7 +10,7 @@ puppeteer.use(StealthPlugin()); * @param {string} screenshotPath - Path where the screenshot should be saved. * @returns {Promise} - Metadata including title, description, keywords, language, and HTTP status. */ -async function scrapePage(url, screenshotPath, { screenshot = true }) { +async function scrapePage(url, screenshotPath) { console.log(`🔍 Scraping: ${url}`); const browser = await puppeteer.launch({ @@ -90,7 +90,7 @@ async function scrapePage(url, screenshotPath, { screenshot = true }) { }); - if (screenshot && screenshotPath) { + if (screenshotPath) { await page.screenshot({ path: screenshotPath, fullPage: true }); console.log(`✔ Screenshot saved: ${screenshotPath}`); }