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.72k stars 1.14k forks source link

can't load extensions with uc #867

Open ghost opened 1 year ago

ghost commented 1 year ago

i've tried everything i've seen online but nothing seems to work

heres is my current block of code:

import undetected_chromedriver as uc
import pathlib
from selenium import webdriver 
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_argument(f"--load-extension="+",".join([
    str(pathlib.Path("C:/Users/suley/Downloads/ext/captcha").absolute()),
]))

driver = uc.Chrome(use_subprocess=True)
hamzaaitbrik commented 1 year ago

same issue

hamzaaitbrik commented 1 year ago

@ultrafunkamsterdam any idea how to fix this issue please?

hamzaaitbrik commented 1 year ago

I just fixed this problem. If you're trying to load .crx it won't work. You need to convert .crx to .zip, unzip it and load that.

adfou commented 1 year ago

828 i found solution in this page