2

When I used Chromedriver with selenium in python, I get a lot of console messages that are not useful to me and that don't affect my scraper. How do I not output these? I do not have this issue when I use geckodriver. Please see picture for example of the stuff I don't want.

enter image description here

1 Answer 1

3

You can run ChromeDriver in silent mode.
When you execute ChromeDriver, you have to set the log level in the command line arguments:

chromedriver --log-level=OFF

Similar post in (StackOverflow)

https://stackoverflow.com/questions/18702533/how-to-execute-selenium-chrome-webdriver-in-silent-mode

Edit

--log-level=3 offer a minimal amount of logs, but if you want a totally silent mode, it's better to use --log-level=OFF

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.