Created
December 3, 2020 00:26
-
-
Save temp3l/01e06ce9f7fe675f7c6c30e1d742aed7 to your computer and use it in GitHub Desktop.
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({ | |
devtools: true, | |
//slowMo: 850 // slow down by 250ms | |
}); | |
const page = await browser.newPage(); | |
await page.goto('https://www.instagram.com/hackaberry/?hl=de'); | |
await page.goto('https://www.instagram.com/foot/?hl=de'); | |
await page.goto('https://www.instagram.com/foo/?hl=de'); | |
await page.goto('https://www.instagram.com/footlockereu/?hl=de'); | |
await page.screenshot({path: 'google.png'}); | |
await page.on('console', msg => console.log('PAGE LOG:', msg.text())); | |
await page.goto('https://web.de'); | |
await browser.close(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment