I don't know how many times this is, but when I try to scrape with Selenium again, I get an error. The content of the error is a familiar one.
session not created: This version of ChromeDriver only supports Chrome version 80
I will try Google Translate. *** "No session created: This version of Chrome Driver only supports Chrome version 80" ***
It came out before. Click here ↓ [Python] Error in Selenium, scraping is not possible, but ...
I really want you to stop getting an error suddenly.
First of all, Google Chrome.
Then chromedriver-binary
Google Chrome version | 83.0.4103.97 |
chromedriver-binary version | 80.0.3987.106.0 |
Google Chrome is automatically upgraded, so you should match the version of chromedriver-binary.
First, delete the old version.
pip uninstall chromedriver-binary
confirm.
pip show chromedriver-binary
It has been deleted properly. Next, install the chromedriver-binary that matches the version of Google Chrome. Check the path where the Google Chrome file is stored in advance. On my computer it was in "C: \ Program Files (x86) \ Google \ Chrome \ Application".
command prompt
for /f "tokens=1" %V in ('dir /B /O-N "C:\Program Files (x86)\Google\Chrome\Application" ^|findstr "^[0-9].*" ') do pip install chromedriver-binary^<^=%V
Make sure it is installed properly. Version "83.0.4103.39.0" is installed.
Web scraping in Selenium was also handled without error. Congratulations, congratulations.
Recommended Posts