#chromedriver.storage.googleapis.com/index.html
When preparing to write a script to climb netease cloud song information. Use Selenium to stamp. Here is a chrome browser, link to the page error: The File “C: \ Python37 \ lib \ site – packages, selenium and webdriver \ chrome \ webdriver py”, line 73, In init self.service.start() File “C: Python37\lib\site-packages\selenium\ webDriver \common\service.py”, line 83, in start os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: ‘chromedriver the executable needs to be in the PATH. Both Please see sites.google.com/a/chromium….
Solution: Install webDriver that matches the browser version. 1. Open Google Chrome and enter Chrome ://version/ in the address bar to view the version information:
2, choose the right version of the driver download, download address: chromedriver.storage.googleapis.com/index.html
3. Decompress the downloaded driver and put it in a specified directory. Specify the directory when the code is called. Decompressed directory:
Place Chromedriver.exe under the Selenium library of your installation
Run the program as follows:
from selenium import webdriver
chrome_driver=r”D:\Python\Anaconda\Lib\site-packages\selenium\webdriver\chrome\chromedriver.exe”
driver=webdriver.Chrome(executable_path=chrome_driver)