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

rebrowser-patches doesn't work for browserless #89

Open
yuleisheng opened this issue Feb 3, 2025 · 0 comments
Open

rebrowser-patches doesn't work for browserless #89

yuleisheng opened this issue Feb 3, 2025 · 0 comments

Comments

@yuleisheng
Copy link

cross post from browserless (browserless/browserless#4553)

I'm using rebrowser-patches(https://github.com/rebrowser/rebrowser-patches) to bypass bot detection, it works for my local browser via puppeteer.launch:

const browser = await puppeteer.launch({
executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
headless: false,
args: ['--disable-blink-features=AutomationControlled'],
defaultViewport: null,
});

but it doesn't work for browserless via puppeteer.connect:

const args = ['--disable-blink-features=AutomationControlled'];
const launchParams = JSON.stringify({ headless: false, args });
const wsEndpoint = /?token=&launch=${launchParams};
const connectionPromise = puppeteer.connect({
browserWSEndpoint: wsEndpoint,
protocolTimeout,
defaultViewport: null,
});

The launch params are the same. I'm confused why it works for my local browser but not browserless. Thanks!

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

1 participant