M
M
motya882020-02-19 16:49:33
Python
motya88, 2020-02-19 16:49:33

How to run selenium webdriver on digital ocean?

Friends, help me run the script on digital ocean
The script starts like this:

from selenium import webdriver

driver = webdriver.Chrome('/usr/bin/google-chrome-stable')
driver.get('https://test.ru/')


I get the following error on startup:
Traceback (most recent call last):
  File "./esia_informer.py", line 6, in <module>
    driver = webdriver.Chrome('/usr/bin/google-chrome-stable')
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 98, in start
    self.assert_process_still_running()
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 111, in assert_process_still_running
    % (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service /usr/bin/google-chrome-stable unexpectedly exited. Status code was: 1


when checking the version of google-chrome-stable -version I get:
Google Chrome 80.0.3987.116

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
motya88, 2020-02-21
@motya88

seems to have worked out. did according to the article jonathansoma.com/lede/algorithms-2017/servers/sett...

D
Dr. Bacon, 2020-02-19
@bacon

Have you tried reading the docs? There chromedriver is expected, not google-chrome-stable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question