Skip to content

Instantly share code, notes, and snippets.

View zeckdude's full-sized avatar

Chris Seckler zeckdude

View GitHub Profile
@zeckdude
zeckdude / scrape.js
Created January 15, 2024 00:58
Puppeteer Demo update for new page structure
// 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