Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always detected, didn't find answer anywhere #231

Closed
tenkuken opened this issue Jun 24, 2020 · 1 comment
Closed

Always detected, didn't find answer anywhere #231

tenkuken opened this issue Jun 24, 2020 · 1 comment

Comments

@tenkuken
Copy link

opening this page always detected..
anyone know why ?

const puppeteer = require("puppeteer-extra");
const stealthPlugin = require("puppeteer-extra-plugin-stealth")();

["chrome.runtime", "navigator.languages"].forEach(a =>
  stealthPlugin.enabledEvasions.delete(a)
);

puppeteer.use(stealthPlugin);

main();
async function main() {
  const browser = await puppeteer.launch({headless: true, args: ['--no-sandbox']});
  const page = await browser.newPage();

  await page.evaluateOnNewDocument(() => {
    delete navigator.__proto__.webdriver;
  });

  await page.goto(`https://ib.bri.co.id`);  
  await page.waitFor(5000)         
  await page.screenshot({ path: "./11.png" });
  browser.close();
}
@berstend
Copy link
Owner

berstend commented Aug 7, 2020

Please try again with the latest version: puppeteer-extra-plugin-stealth@2.5.0

@berstend berstend closed this as completed Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants