I try tu use Selenium WebDriver on PythonAnywhere but keep getting some issues on getting it up and running. I got it working without any problems locally. Here is the (simplified) code that I am having:
from selenium import webdriver
import chromedriver_autoinstaller
chromedriver_autoinstaller.install() # Check if the current version of chromedriver exists
# and if it doesn't exist, download it automatically,
# then add chromedriver to path
driver = webdriver.Chrome()
I get the error on the line
driver = webdriver.Chrome()
I get the following error:
WARNING:selenium.webdriver.common.selenium_manager:Exception trying to discover chromedriver version: error sending request for url (https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/ linux64/chrome-linux64.zip): error trying to connect: unsuccessful tunnel
Anyone any idea what is going on here?