QianyanTech / Image-Downloader

Download images from Google, Bing, Baidu. 谷歌、百度、必应图片下载.
MIT License
2.19k stars 572 forks source link

对chrome版本是否有限制 #61

Open likohank opened 11 months ago

likohank commented 11 months ago

使用118版本的chrome,一直提示错误 [15:30:06] Checking Google Chrome and chromedriver ... [15:30:07] WARNING:root:Can not find chromedriver for currently installed chrome version. [15:30:07] Dependencies not resolved, exit. [15:30:07] stopped

请问要运行此程序,是否需要指定版本的chrome

MuLoo commented 5 months ago
def resolve_dependencies(driver=str):
    if "chrome" in driver:
        print("Checking Google Chrome and chromedriver ...")
        # if you have installed chronmium/chrome and chromedriver of the same version and still get an error, you can try commenting out the following three lines.
        # driver_path = chromedriver_autoinstaller.install()
        # if not driver_path:
        #    return False
        print("OK.")
    return True