Skip to content

puppeteer-stealth

89,039 30 266 MIT
2.11.2 (11 Apr 2023) May 29 2018 1.0 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


89,039 23.10.1 (5 days ago) Mar 23 2013 compare
212 1.0.0-beta8.4 (1 year, 5 months ago) Apr 18 2019 compare

Other Languages

3,854 v0.6.1 (9 months ago) Feb 23 2022 compare
10,159 3.5.5 (9 months ago) Sep 04 2020 compare
1,751 0.7.1 (4 months ago) Feb 23 2022 compare
713 0.9.2 (9 days ago) Feb 23 2022 compare
642 1.9.4 (a month ago) Jul 22 2022 compare
Was this page helpful?