zfcsoftware / puppeteer-real-browser

This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.
https://www.npmjs.com/package/puppeteer-real-browser
MIT License
622 stars 84 forks source link

How to add userDataDir? #171

Closed PoxhYT closed 1 week ago

PoxhYT commented 1 week ago

I want to add my profile to chrome but i couldnt find anything. Please help

zfcsoftware commented 1 week ago

https://github.com/zfcsoftware/puppeteer-real-browser?tab=readme-ov-file#usage

customConfig: https://github.com/GoogleChrome/chrome-launcher The browser is initialized with this library. What you send with this object is added as a direct initialization argument. You should use the initialization values in this repo. You should set the userDataDir option here and if you want to specify a custom chrome path, you should set it with the chromePath value.

https://github.com/GoogleChrome/chrome-launcher?tab=readme-ov-file#api