Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

puppeteer

//run: npm i puppeteer

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://example.com'); 
  await page.screenshot({ path: 'example.png' });

  await browser.close();
})();
 
PREVIOUS NEXT
Tagged: #puppeteer
ADD COMMENT
Topic
Name
8+6 =