Skip to content

puppeteer-stealth

88,173 29 282 MIT
2.11.2 (11 Apr 2023) May 29 2018 1.3 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,173 23.3.0 (6 days ago) Mar 23 2013 compare
205 1.0.0-beta8.4 (1 year, 2 months ago) Apr 18 2019 compare

Other Languages

3,625 v0.6.1 (6 months ago) Feb 23 2022 compare
9,539 3.5.5 (6 months ago) Sep 04 2020 compare
1,751 0.7.1 (a month ago) Feb 23 2022 compare
510 1.9.3.1 (3 months ago) Jul 22 2022 compare
621 0.8.2 (5 months ago) Feb 23 2022 compare
Was this page helpful?