Skip to content

Instantly share code, notes, and snippets.

@temp3l
Created December 3, 2020 00:26
Show Gist options
  • Save temp3l/01e06ce9f7fe675f7c6c30e1d742aed7 to your computer and use it in GitHub Desktop.
Save temp3l/01e06ce9f7fe675f7c6c30e1d742aed7 to your computer and use it in GitHub Desktop.
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