Package Exports
- puppeteer-cloak
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (puppeteer-cloak) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
puppeteer-cloak
Use this project to protect your puppeteer page from anti scraping or anti bot tests
Installation
yarn add puppeteer-cloak
# - or -
npm install puppeteer-cloakUsage
const puppeteer = require('puppeteer');
const puppeteerCloak = require('puppeteer-cloak');
const browser = await puppeteer.launch();
// I always use this method to get the active page, and not to have to open a new tab
const page = (await this.browser.pages())[0];
// use this instead of the page, to get all the cloaking benefits
const cloakedPage = puppeteerCloak(page);Creator
Pavle Aleksic
License
This project is licensed under the terms of the MIT license.