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
// This is an update to the script on the Puppeteer at https://pptr.dev/#example which is relying on an old page structure | |
import puppeteer from 'puppeteer'; | |
export const runScrape = async (res) => { | |
// Launch the browser and open a new blank page | |
const browser = await puppeteer.launch({headless: true}); | |
const page = await browser.newPage(); | |
// Navigate the page to a URL |
OlderNewer