How can I insert path (environmental variable) for geckodriver in google colab?

前端 未结 1 1681
夕颜
夕颜 2021-01-03 02:56

I want to run selenium in Google Colab through gecko driver, but it told me: executable needs to be in PATH

I uploaded firefox and gecko driver in Google Colab and c

相关标签:
1条回答
  • 2021-01-03 03:15

    I made a gist on how to use chrome+selenium on Colab here.

    https://gist.github.com/korakot/5c8e21a5af63966d80a676af0ce15067

    The key is to copy the driver to PATH (here is /usr/bin)

    !cp /usr/lib/chromium-browser/chromedriver /usr/bin

    You can try copy your gecko driver there as well. But you cannot use the exe file which only run on Windows.

    0 讨论(0)
提交回复
热议问题