ValueError: There is no such driver by urlのエラー(Selenium)
Seleniumを使い、久々にスクレイピングでもやってみようかなぁ。
久々のChromeのWebドライバーを利用しようとしたところ、、、
Seleniumでありがちなエラーに遭遇!と思いきや少し違う。。。
ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/116.0.5845/chromedriver_mac64.zip
https://chromedriver.chromium.org/home
Chromedriverを提供しているサイトを訪問してみるとこんな記載がありました。
If you are using Chrome version 115 or newer, please consult the Chrome for Testing availability dashboard. This page provides convenient JSON endpoints for specific ChromeDriver version downloading.
ここのダッシュボードを参照すれば良いのですね。
ダッシュボードから116.xx.xx.xxのバージョン用のStable版をダウンロードし、インストール。
無事に利用できるようになりました!