Reputation: 11
how to stop undetected_chromedriver redownloading driver by running each time?
i've tried set executable_path=driver_path but it didn't stop that
def instanciate_driver(attach=False):
options = uc.ChromeOptions()
option.headless = True
binary_path = '/usr/local/bin/chromedriver'
browser = uc.Chrome(executable_path=binary_path,
options=options, version_main=96)
i'll appreciate any help
Upvotes: 1
Views: 3405
Reputation: 71
I think you should pass driver_executable_path
, not executable_path
. See the source code here.
Upvotes: 2