python chromedriver automatic update

I'm doing a simple RPA with python, I had to update the chrome driver manually, but the annoyance was the limit. ..

The following article was useful when I raised my heavy waist and investigated.

https://yuki.world/python-selenium-chromedriver-auto-update/

1. 1. Install web_driver manager with pip

pip install webdriver_manager --proxy=proxy.hoge.com:8080

2. 2. Reference import to python file

from webdriver_manager.chrome import ChromeDriverManager

3. 3. A little change in driver initialization for python files

driver = webdriver.Chrome(ChromeDriverManager().install())

It was automated. .. great.

that's all

Recommended Posts

python chromedriver automatic update
Automatic update of Python module
Python update (2.6-> 2.7)
Automatic update method with python Pyinstaller exe
python memorandum (sequential update)
python selenium chromedriver beautifulsoup
Scraping with chromedriver in python
Run automatic jobs in python
How to update Python Tkinter to 8.6
Update python on Mac to 3.7-> 3.8
[Python beginner] Update pip itself
Replace dictionary value with Python> update ()
Scraping with Python, Selenium and Chromedriver
Docker environment update: add Python package
[python] Script that (should) update pwsh
Update Python on Mac from 2 to 3
Let's Encrypt certbot renew automatic update error
Automatic collection of stock prices using python
How to update Google Sheets from Python
Automatically update Power BI Desktop in Python
Clogged with python update of GCP console ①