Hey all!
I wrote a python script that goes through the website of a local realtor, to give a notification when a room is available because the site itself doesnt have this option. My code works perfectly on my PC, but after uploading it it doesnt seem to work on pythonanywhere.
It works in the beginning, asking for input like username etc, but after that I get this error:
/home/harmpwns/testrepo2/Test.py:52: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
driver = webdriver.Chrome(executable_path="chromedriver.exe", options=options)
Traceback (most recent call last):
File "/home/harmpwns/.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)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver.exe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/harmpwns/testrepo2/Test.py", line 52, in <module>
driver = webdriver.Chrome(executable_path="chromedriver.exe", options=options)
File "/home/harmpwns/.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/harmpwns/.local/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 89, in __init__
self.service.start()
File "/home/harmpwns/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home
does anyone know how to fix this problem?
Thanks in advance