Closed ousooners2834 closed 3 years ago
Did you find a solution to this afterall?
I did not. I have seen a few comments in the issues that this is not supported so finally gave up. I'm not a full time developer and thus this is pretty advanced for me. In theory it should be possible since the container gets assigned an IP and we can open a virtual browser in headless mode.
I have started to deploy sections of my bots on local machines and push that data up to a Firebase instance which works flawlessly with this driver. Then I integrate that data into another bot that is running in the cloud without needing Selenium - just API calls.
However, if someone that is skilled in Docker - and understands these chrome drivers could work to create an image, I think it would be really popular. Being able to deploy a server instance of the undetectable chrome driver would make things just so much easier. Eventually I will have to start buying rasberry pi's for cheap local instances. I would rather not do that though.
Hi @ousooners2834 , Following on your issue here, I'm not sure if you have seen this https://hub.docker.com/r/ultrafunk/undetected-chromedriver I'm not sure if it will make any efforts solving your issue :)
Please let me know if it makes any difference :)
Hi there - thanks for creating this package. It is a really nice piece of work.
Is it possible to run it within a docker container by chance? I have tried a simple one but got an error. If anyone has had any success with this in the past, please let us know.
The current error I got when running my docker container locally - unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.
docker build . -t test-scraper-v1 docker run -it test-scraper-v1
My Docker File:
My app.py in the same folder as the docker file -
the requirements.txt file -