Skip to content

Instantly share code, notes, and snippets.

View mahfuz4's full-sized avatar

Mahfuz Anam mahfuz4

  • Cumilla,Bangladesh
View GitHub Profile
@mahfuz4
mahfuz4 / index.js
Created October 1, 2021 13:25 — forked from LearnWebCode/index.js
Puppeteer / Node.js Automation & Web Scraping Tutorial from YouTube
// in a new folder be sure to run "npm init -y" and "npm install puppeteer"
const puppeteer = require("puppeteer")
const fs = require("fs/promises")
async function start() {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.goto("https://learnwebcode.github.io/practice-requests/")
const names = await page.evaluate(() => {