LoginSignup
2
3

More than 3 years have passed since last update.

chrome driver binaryをchromeと自動バージョン同期する

Posted at

目的

chromedriver-binaryのバージョンを自端末のchromeと自動同期とる

手順

参考サイト
https://github.com/yeongbin-jo/python-chromedriver-autoinstaller

macならターミナルにて
pip install chromedriver-autoinstaller

Windowsならコマンドプロンプトにて
py -m pip install chromedriver-autoinstaller

インストールが終わったら、自分のPythonプログラムコードに
from selenium import webdriver などのimport句らへんに↓の2行を追加
import chromedriver_autoinstaller
chromedriver_autoinstaller.install()

以上。
あとは普通にそのままコードを書き連ねて実行するのみ。

2
3
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
2
3