1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

python chromedriver自動更新

Posted at

pythonで簡易RPAを実施しているのでけれど、
chromedriverを手動で更新していたがめんどくささが限界に。。

重い腰を上げ調べてところ下記の記事が役に立ちました。

###1.pipでweb_drivermanagerをインストール

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

※うちはproxy環境なのでproxyオプションつけています。通常不要。

###2.pythonファイルに参照import

from webdriver_manager.chrome import ChromeDriverManager

###3.pythonファイルのdriver初期化をちょこっと変更

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

自動化された。。すばらしい。

以上
 

1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?