Created
February 9, 2020 01:15
-
-
Save pepoviola/3316771686bd1e7d43c6ddeb068d2e45 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 chromium = require( 'chrome-aws-lambda' ); | |
const puppeteer = require( 'puppeteer-core' ); | |
const browser = await puppeteer.launch( { | |
args : chromium.args, | |
defaultViewport : chromium.defaultViewport, | |
executablePath : await chromium.executablePath, | |
headless : chromium.headless, | |
} ); | |
const page = await browser.newPage(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment