Skip to content

Instantly share code, notes, and snippets.

@omisolaidowu
Created February 22, 2024 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omisolaidowu/537fa1b0bde1422bc257ab8c231c2fc7 to your computer and use it in GitHub Desktop.
Save omisolaidowu/537fa1b0bde1422bc257ab8c231c2fc7 to your computer and use it in GitHub Desktop.
Initial Memory
// import the required libraries
const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
// tie Puppeteer Extra to the Stealth plugin
puppeteer.use(StealthPlugin());
(async () => {
// start the browser in non-headless mode
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
await browser.close();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment