Search code examples
pythonseleniumpathpythonanywhereundetected-chromedriver

How to correctly specify the path to chromedriver in pythonanywhere project


I want to specify the path to a file in a python project on the pythonanywhere site. Unfortunately, I am getting an error. Here are pictures of the folder and console

Code:

driver = uc.Chrome(options=options, driver_executable_path="/user/KraKoff/files/home/KraKoff/chromedriver.exe")

Console

Folder


Solution

  • Do not specify the chromedriver path on PythonAnywhere. It is not necessary.