[Python] Eliminate Chrome Webdriver errors

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.

Check the environment

First of all, Google Chrome. a02.png

Then chromedriver-binary a01.png

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.

Reinstall the driver according to the version of Google Chrome

First, delete the old version.

pip uninstall chromedriver-binary

confirm.

pip show chromedriver-binary

a03.png 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. a04.png Version "83.0.4103.39.0" is installed.

Web scraping in Selenium was also handled without error. Congratulations, congratulations.

Recommended Posts

[Python] Eliminate Chrome Webdriver errors
My Webdriver (Python)
Selenium + WebDriver (Chrome) + Python | Building environment for scraping
Drive WebDriver with python
[Python] Memo about errors
Selenium WebDriver + Firefox49 (provisional) (Python)
[Python, Excel] Eliminate cell merging
Challenge Python3 and Selenium Webdriver
Eliminate no-member errors in Pylint
Decrypt AES-encrypted Windows Chrome cookies [python]
Eliminate WARNING when starting Python IDLE