Skip to content

puppeteer-stealth

87,572 29 286 MIT
2.11.2 (11 Apr 2023) May 29 2018 1.9 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


87,572 22.12.1 (10 days ago) Mar 23 2013 compare
200 1.0.0-beta8.4 (1 year, 8 days ago) Apr 18 2019 compare

Other Languages

3,452 v0.6.1 (4 months ago) Feb 23 2022 compare
9,015 3.5.5 (4 months ago) Sep 04 2020 compare
1,603 0.6.4 (a month ago) Feb 23 2022 compare
386 1.9.3.1 (a month ago) Jul 22 2022 compare
541 0.8.2 (3 months ago) Feb 23 2022 compare
Was this page helpful?