私はヘッドレスセレンを実行しようとしていて、それを把握するためにDigital Ocean(Ubuntu 16)に新しいドロップレットを設定しました。Ubuntu Serverでヘッドレスセレンを実行するにはどうすればいいですか?
私はthis tutorialに従っていますが、スクリプトを実行すると次のエラーが表示されます。
Traceback (most recent call last):
File "pyvirtualdisplaytest.py", line 12, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 135, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x7f981d0dc190>> ignored
どうすればよいですか?ご協力いただきありがとうございます。