apify / browser-pool

A Node.js library to easily manage and rotate a pool of web browsers, using any of the popular browser automation libraries like Puppeteer, Playwright, or SecretAgent.
87 stars 14 forks source link

How to login Gmail #66

Closed s0ckd3 closed 2 years ago

s0ckd3 commented 2 years ago

I'm trying to login Gmail using Browser-pool Playwright. But all my efforts failed. ` headless: false, // true chromiumSandbox: false, ignoreDefaultArgs: ["--enable-automation"],

args: [
    '--disable-component-extensions-with-background-pages',
    '--log-level=3',
    '--enable-blink-features=IdleDetection',
    '---useAutomationExtension=false',
    '--no-default-browser-check',
    '--disable-background-networking',
    // '--disable-3d-apis',
    '--disable-notifications',
    '--disable-dev-shm-usage',
    '--disable-blink-features=AutomationControlled',
    // '--disable-webgl',
    '--disable-rtc-smoothness-algorithm',
    '--disable-webrtc-hw-decoding',
    '--disable-webrtc-hw-encoding',
    '--disable-webrtc-multiple-routes',
    '--disable-webrtc-hw-vp8-encoding',
    '--enforce-webrtc-ip-permission-check',
    '--force-webrtc-ip-handling-policy',
    '--ignore-certificate-errors',
    '--disable-infobars',
    '--disable-extensions',
    '--disable-popup-blocking',
    '--disable-features=UserAgentClientHint',
    '--disable-gpu-vsync',
    '--disable-gpu',
    '--ignore-certificate-errors',
    '--disable-web-security',
    '--allow-running-insecure-content'
]

` Even though I try to install a browser-pool that can do Gmail login but it seems that Google still detects this as an automated browser