I am getting a ChromeDriver issue, same as many above. I am trying to use it to web scrape, but before I pay for an account I wanted to see if it would work in this environment. Please see the error below. I've used the ChromeDriver for Linux and have it in the home directory, same as my Python file. I've also added the Selinium code found here. Any help would be greatly appreciated.
/home/commencementjobs/WebScrape.py:31: DeprecationWarning:
executable_path has been deprecated, please pass in a Service object
driver =
webdriver.Chrome(executable_path=r"/home/commencementjobs/chromedriver",options=options)
Traceback (most recent call last): File
"/home/commencementjobs/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py",
line 71, in start self.process = subprocess.Popen(cmd,
env=self.env, File "/usr/local/lib/python3.9/subprocess.py", line
951, in init self._execute_child(args, executable, preexec_fn,
close_fds, File "/usr/local/lib/python3.9/subprocess.py", line 1821,
in _execute_child raise child_exception_type(errno_num, err_msg,
err_filename) PermissionError: [Errno 13] Permission denied:
'/home/commencementjobs/chromedriver' /n
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File
"/home/commencementjobs/WebScrape.py", line 31, in <module>
driver = webdriver.Chrome(executable_path=r"/home/commencementjobs/chromedriver",options=options)
File
"/home/commencementjobs/.local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py",
line 70, in init
super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], "goog",
File
"/home/commencementjobs/.local/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py",
line 90, in init
self.service.start() File "/home/commencementjobs/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py",
line 86, in start
raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver'
executable may have wrong permissions. Please see
https://chromedriver.chromium.org/home