berstend / puppeteer-extra

💯 Teach puppeteer new tricks through plugins.
https://extra.community
MIT License
6.23k stars 732 forks source link

[Bug] Confirm that you're not a robot - Google Sign Up #845

Open spyderdsn opened 8 months ago

spyderdsn commented 8 months ago

Describe the bug

Google detects Puppeter even when using puppeteer-extra, puppeteer-extra-plugin-stealth

Code Snippet

puppeteer.launch({
    headless: false,
    ignoreHTTPSErrors: true,
    executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
    args: [
        '--window-size=800,800',
        "--no-sandbox",
        "--disable-dev-shm-usage",
        "--disable-gpu",
        "--disable-extensions",
        "--disable-dev-tools",
        "--disable-infobars",
        "--ignore-certificate-errors",
        "--enable-logging",
        "--v=1",
        '--disable-setuid-sandbox',
        '--disable-infobars',
        '--window-position=0,0',
        '--ignore-certifcate-errors',
        '--ignore-certifcate-errors-spki-list',
        '--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36'
    ]
})
await page.setExtraHTTPHeaders({
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
    'upgrade-insecure-requests': '1',
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
    'accept-encoding': 'gzip, deflate, br',
    'accept-language': 'en-US,en;q=0.9,en;q=0.8'
});
Screenshot 2023-10-08 at 6 38 58 pm

Manual entry:

Screenshot 2023-10-08 at 6 33 51 pm

Versions

    "puppeteer": "^21.3.8",
    "puppeteer-extra": "^3.3.6",
    "puppeteer-extra-plugin-stealth": "^2.11.2",
nickjanssen commented 8 months ago

@spyderdsn isn't this simply your IP that got flagged? Try using a proxy (--proxy-server)