Last active
January 11, 2018 09:02
-
-
Save afm-sayem/bcd20b6e8615d725377f05f4afa94582 to your computer and use it in GitHub Desktop.
take screenshot of novelship
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer'); | |
(async() => { | |
const browser = await puppeteer.launch({args: ['--no-sandbox']}); | |
const page = await browser.newPage(); | |
await page.goto('https://www.novelship.com/products/12858', {waitUntil: 'networkidle2'}); | |
await page.screenshot({path: 'example.png'}); | |
await browser.close(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment