puppeteer-cloak

1.0.6 • Public • Published

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-cloak

Usage

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.

Package Sidebar

Install

npm i puppeteer-cloak

Weekly Downloads

69

Version

1.0.6

License

MIT

Unpacked Size

6.87 kB

Total Files

9

Last publish

Collaborators

  • paleksic