Skip to content

puppeteer-stealth

88,365 30 278 MIT
2.11.2 (11 Apr 2023) May 29 2018 1.1 million (month)

Puppeteer Stealth is puppeteer plugin that fortifies headles browser for web scraping. This makes detection of puppeteer scrapers more difficult allowing to scrape targets which use headless browser detection techniques.

Puppeteer-stealth does this by applying various javascript patches to cover up traces of headless browser presence in the web scraping browser's environment.

Example Use


const puppeteer = require('puppeteer-extra')

// add stealth plugin and use defaults (all evasion techniques)
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
puppeteer.use(StealthPlugin())

// puppeteer usage as normal
puppeteer.launch({ headless: true }).then(async browser => {
  console.log('Running tests..')
  const page = await browser.newPage()
  await page.goto('https://bot.sannysoft.com')
  await page.waitForTimeout(5000)
  await page.screenshot({ path: 'result.png', fullPage: true })
  await browser.close()
  console.log("success - check the result.png screenshot")
})

Alternatives / Similar


88,365 23.4.1 (20 days ago) Mar 23 2013 compare
209 1.0.0-beta8.4 (1 year, 3 months ago) Apr 18 2019 compare

Other Languages

3,639 v0.6.1 (7 months ago) Feb 23 2022 compare
9,677 3.5.5 (7 months ago) Sep 04 2020 compare
1,751 0.7.1 (3 months ago) Feb 23 2022 compare
644 0.8.2 (6 months ago) Feb 23 2022 compare
538 1.9.3.1 (4 months ago) Jul 22 2022 compare
Was this page helpful?