Hi all
I have a paid account and I am seeing the following errors - New Connection Error, Max Retry Error, Connection Refused Error:
ConnectionRefusedError: [Errno 111] Connection refused
NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9792a553c0>: Failed to establish a new connection: [Errno 111] Connection
refused
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=58979): Max retries exceeded with url: /session/53172be96dc2e8d7198cd6da616d308e/elem ent (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9792a553c0>: Failed to establish a new connection: [Errno 111] Connection ref used'))
I am using selenium and assume that I am getting the above issues as the website: https://hudoc.echr.coe.int/eng is blocking access to Python Anywhere specifically. I am running the same code on my local machine with absolutely no issues.
The following are the Chrome Options in my code:
options = Options()
options.add_argument('--disable-blink-features=AutomationControlled')
options.add_argument("--disable-extensions")
options.add_argument("--headless")
options.add_argument("--no-sandbox")
options.add_argument("--disable-gpu")
options.add_argument("--user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36'")
options.add_experimental_option('useAutomationExtension', False)
options.add_experimental_option("excludeSwitches", ["enable-automation"])
Thanks for any and all help :)