Installation & Setup

  1. Set up package.json & node_modules

    npm init
    
  2. Install puppeteer

    npm install puppeteer --save
    

await page.screenshot({ path: 'example.png',fullPage: true });

fullPage: true → TO get Full Page Screen Shot


Retrieving Data from a Webpage

Let us take an example, https://www.amazon.in/s?k=Macbook