diff --git a/src/crawler/crawler.service.ts b/src/crawler/crawler.service.ts index b603cc7..0895d45 100644 --- a/src/crawler/crawler.service.ts +++ b/src/crawler/crawler.service.ts @@ -31,7 +31,7 @@ export class CrawlerService { // SCRIPTS // // SCREENSHOT // - const screenshotBuffer: Buffer = await page.screenshot(); + const screenshotBuffer: Buffer = await page.screenshot({ fullPage: true }); fs.writeFile(`${directory}screenshot.png`, screenshotBuffer, (err) => { if (err) throw err; console.log(`Screenshot saved! ${directory}screenshot.png`);