uc_open_with_reconnect doesn't work in Docker #3449
-
I have a SB based scraper that perfectly works locally on MacOS - it opens the listing page, clicks protected element and reads text.
However, it doesn't work when I am trying to run the code in docker. The SB object is created but it is not able to open the page. After a couple of minutes processing the error is:
I have tried different combinations of options headless, xvfb, incognito and none of them worked. I build my Docker image with --platform linux/amd64. The same Docker container can open other websites: Please help run the code in Docker. Also, are there better/simpler options for scraping automation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
CDP Mode replaces regular UC Mode, so I would need to see the stack trace you get when using CDP Mode for that. (The |
Beta Was this translation helpful? Give feedback.
CDP Mode replaces regular UC Mode, so I would need to see the stack trace you get when using CDP Mode for that. (The
uc_open_with_reconnect()
method is from regular UC Mode). Also, Docker leaves a detectable fingerprint, so if you're going for stealth, I wouldn't use Docker. Use GitHub Actions instead. Lots of examples of stealthy GitHub Actions jobs in https://github.com/mdmintz/undetected-testing/actions.