Skip to content

Instantly share code, notes, and snippets.

@rajabilal555
Last active April 3, 2022 04:56
Show Gist options
  • Save rajabilal555/be1f4001635e4a584a5dfc4ff637eb46 to your computer and use it in GitHub Desktop.
Save rajabilal555/be1f4001635e4a584a5dfc4ff637eb46 to your computer and use it in GitHub Desktop.
Web Scrapping with Nodejs (Step 1)
const pup = require("puppeteer");
async function main() {
const browser = await pup.launch(); // Like launching a browser
const page = await browser.newPage(); //Like Creating a Tab in the Browser
await page.goto("https://www.google.com/");
console.log("Page loaded");
await browser.close();
// If you dont close the script will keep running
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment