Struggling with Web Scraping in Docker using Selenium

May 5, 2025 2 answers
Asked by FAR HORIZON
I'm trying to set up a Docker environment for web scraping with Selenium. My Dockerfile is based on Python 3.11-slim, and I've included the needed packages. However, when I build the Docker image, it's failing to work as expected. I would really appreciate any help or guidance in resolving this issue!

Answers

a dash of nutmeg
It looks like you're facing a compatibility issue. The error message indicates that the version of ChromeDriver you have only supports Chrome version 114, but your current browser version is 136.0.7103.59. So, you'll need to update either the ChromeDriver or the Chrome version you're using. That should clear things up!

boring mill: Yes, the error message is pretty clear about the mismatch. Just match your ChromeDriver version with your installed Chrome version to fix it!

_listening_to_lectures: Totally! Updating them to compatible versions is definitely the way to go. It should resolve your issue!

Reply to this answer
not-a-hard-rule
Have you considered using one of the official Selenium base images instead of starting from python:slim? It can save you some hassle and make things a lot easier to set up. Check out the GitHub page for them; it might be what you need!
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions