Answer the question
In order to leave comments, you need to log in
How to install selenium(python) on Ubuntu VPS?
Good afternoon!
Please help me figure out how to run code using selenium b chromedriver on VPS.
VPS - Ubuntu 16.04.6 LTS (GNU/Linux 2.6.32-042stab142.1 x86_64)
Python 3.5.2
Did everything according to the instructions here: jonathansoma.com/lede/algorithms-2017/servers/sett...
Once upon a time The instruction helped, but now it does not work.
I am running this code:
from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(800, 600))
display.start()
options = webdriver.ChromeOptions()
options.add_argument('--no-sandbox')
driver = webdriver.Chrome(chrome_options=options)
driver.get('http://nytimes.com')
print(driver.title)
Traceback (most recent call last):
File "./qwert.py", line 10, in <module>
driver = webdriver.Chrome(chrome_options=options)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 98, in start
self.assert_process_still_running()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 111, in assert_process_still_running
% (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127
Answer the question
In order to leave comments, you need to log in
If you did it according to the instructions, then downloaded the old chromedriver.
The current version can be downloaded here .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question