Last active
April 3, 2022 04:56
-
-
Save rajabilal555/be1f4001635e4a584a5dfc4ff637eb46 to your computer and use it in GitHub Desktop.
Web Scrapping with Nodejs (Step 1)
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
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