undetected_chromedriver如何使用扩展

 

 

 

https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/481

 

 

use this
add extension folder in chrome

option.add_argument(f"--load-extension={os.getcwd()}/Chrome/extensionproxy")

 

 

 

import undetected_chromedriver as uc
option = uc.ChromeOptions()
option.add_argument('--load-extension=D:\\chrome_proxy')
 driver = uc.Chrome(options=option, driver_executable_path=DRIVER_PATH, log_level=0)

url = "https://ip138.com/"

driver.get(url)


 

posted @ 2022-07-06 17:03  AngDH  阅读(2616)  评论(0编辑  收藏  举报