Selenium download chromedriver6/18/2023 ![]() ![]() Target_name = './bin/chromedriver-win-' version '.exe' Replies = os.popen(r'reg query "HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon" /v version').read() ![]() Os.rename(driver_binaryname, target_name) Zip_ref.extractall(path = './temp/') # you can specify the destination folder path here With zipfile.ZipFile(latest_driver_zip, 'r') as zip_ref: Latest_driver_zip = wget.download(download_url, out='./temp/chromedriver.zip') # download the zip file using the url built above It will detected what chrome version you have, grab the correct driver def download_chromedriver():ĭef download(download_url, driver_binaryname, target_name): ![]()
0 Comments
Leave a Reply. |