下载chromedriver.exe放进chrome的安装目录
chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe" driver = webdriver.Chrome(chromedriver) driver.get("http://www.baidu.com")
chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe" driver = webdriver.Chrome(chromedriver) driver.get("http://www.baidu.com")
|