Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

puppeteer stealth

// puppeteer-extra is a drop-in replacement for puppeteer,
// it augments the installed puppeteer with plugin functionality
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: 'testresult.png', fullPage: true })
  await browser.close()
  console.log(`All done, check the screenshot. ✨`)
})
Comment

puppeteer stealth

npm i puppeteer-extra-plugin-stealth
Comment

PREVIOUS NEXT
Code Example
Javascript :: react style ternary operator 
Javascript :: open json file in current directory python 
Javascript :: hover jquery 
Javascript :: json parse error: cannot deserialize value of type `java.time.localdate` from string 
Javascript :: json server 
Javascript :: js on dom content loaded 
Javascript :: react canvas clear 
Javascript :: javascript set readonly property 
Javascript :: Error: [ProtectedRoute] is not a <Route component 
Javascript :: express js cors 
Javascript :: react beforeunload 
Javascript :: select random from an array 
Javascript :: reload datatable ajax 
Javascript :: regex match entire words only js 
Javascript :: jquery uncheck all other checkboxes when one is checked 
Javascript :: javascript scroll function 
Javascript :: js when you leave 
Javascript :: await fetch in react 
Javascript :: Vanilla JS (on)load with page 
Javascript :: react redirect to url 
Javascript :: createdAt expires mongoose 
Javascript :: js do every x seconds 
Javascript :: date of birth validation for 18 years javascript 
Javascript :: vue router 404 page 
Javascript :: how to get back image and front text in react native 
Javascript :: image onclick function react 
Javascript :: spacebar event listener 
Javascript :: scrollto jquery 
Javascript :: js Convert the characters to the html 
Javascript :: toggle class javascript and jquery 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =