ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.76k stars 1.15k forks source link

Not been able to add multiple extension #904

Closed NimeMolla closed 1 year ago

NimeMolla commented 1 year ago

Only the latest extension added into the driver. How to add multiple at the same time ?? Also tried to add as .crx but didn't successful. code

sebdelsol commented 1 year ago

Sure if you want to load several extensions you've to provide a comma-separated list of path to those. Otherwise you'll end up with only the last one loaded.

extension_paths = (path1, path2, ...)
options.add_argument(f"--load-extension={','.join(extension_paths)}")

Zipped extensions (aka .crx) can't be loaded via command lines. There's options.add_extension(crx_path) available. I haven't tried it tho. I'm not sure it would work since uc has already launched Chrome when the driver is instantiated...

EDIT : options.add_extension is not working wkeeling/selenium-wire#498. But that's a non issue since you just have to unzip those to make it work with the command line option.

EDIT2 : That would've been great if you took the time to search the issues before raising a new one.

NimeMolla commented 1 year ago

Sorry for this..😢 Thanks for the help ❤