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

Bharat Mane
6,78512 gold badges42 silver badges69 bronze badges
asked Jul 3, 2018 at 4:32

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

answered Jul 3, 2018 at 5:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.