Created
January 13, 2020 21:24
-
-
Save LeoMartinDev/f4f09af8cdef57c1028798cf15178bc2 to your computer and use it in GitHub Desktop.
puppeteer basic example
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({ headless: true }); | |
const page = await browser.newPage(); | |
await page.goto('https://leboncoin.fr'); | |
await page.screenshot({ path: 'leboncoin.png' }); | |
await browser.close(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment