rebrowser / rebrowser-patches

Collection of patches for puppeteer and playwright to avoid automation detection and leaks. Helps to avoid Cloudflare and DataDome CAPTCHA pages. Easy to patch/unpatch, can be enabled/disabled on demand.
https://rebrowser.net
285 stars 25 forks source link

browserless #25

Open masylum opened 3 weeks ago

masylum commented 3 weeks ago

Some of us are using https://github.com/browserless/browserless docker image to separate the headless browser from the consumer. I tried adding RUN npx rebrowser-patches@latest patch to both the browserless image and my own image where I run puppeeter-core, but it doesn't seem to work. Any clue how to make it work? Thanks in advance!

nwebson commented 3 weeks ago

It seems like it's just exposing some port for CDP connection that could be used then in puppeteer or playwright, so you can just use rebrowser-puppeteer instead of puppeteer in your code, and provide the URL to browserless docker. If it doesn't work for you, please share your code, so I can reproduce.