I am trying to run a python script remotely via heroku. This script uses a web driver to scrape some stuff off the internet. When I was building this script and running locally, I used a ChromeDriver and it worked well. I would like to transition to a RemoteDriver so that I can run the same script remotely, but when I do so I get the error below:
raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4444): Max retries exceeded with url: /session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd51f9368f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
(full error log on github issue #11488, as well as my code snippet initializing the remote driver)
I would love some help setting up a remote web driver for this use case. Any resources would be greatly appreciated!