SeleniumでChromeが立ち上がらない


press
SeleniumでChromeが立ち上がらない

SeleniumでChromeが立ち上がらない

Pythonでスクレイピングする時にSeleniumでChromeを立ち上げますが、その際に以下のエラーが出てブラウザが起動しない場合があります。その時の解決方法です。

SessionNotCreatedException at /scraping/
Message: session not created: This version of ChromeDriver only supports Chrome version 74

解決方法

このエラーはChromeDriverのヴァージョンが新しいのが原因で起こるので、以下のURLからChromeDriverをダウンロードします。この時にダウンロードするChromeDriverのヴァージョンを上記のエラーに表示されているヴァージョンを指定します。
https://sites.google.com/a/chromium.org/chromedriver/downloads


株式会社ファントムへのお問い合わせ

群馬県でPythonを使ったAIやソフトウェアを開発している株式会社ファントムが運営しています。




    Show Comments (0)

    Comments

    Related Articles

    Python

    AttributeError: module ‘numpy’ has no attribute ‘float’

    AttributeError: module ‘numpy’ has no attribute ‘float’ numpyを使ったライブラリをコマンド実行した際に以下のエラ […]

    Posted on by press
    Flask

    PythonistaでFlaskからHello World!

    iPhoneとiPadから使えるPythonistaというアプリを使ってFlaskからHello World!する方法です。 Pythonistaはプリインストールされたモジュールが充実していて、バージョンも2.7か3. […]

    Posted on by press