Answer the question
In order to leave comments, you need to log in
"Extra" log data in a python script when executed via the Windows command line. Can it be removed?
When I run a script written in Python (selenium) on the command line, the system periodically floods me with log data that I do not need, such as:
Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs.", source: <<< Это не моё.
https://www.instagram.com/static/bundles/metro/Con... <<< Это тоже.
18:12:36 - bot10 -- <Аккаунт - 1> -- Перешёл в профиль: marina_marinakan ======> СТОП-СЛОВО [29/50]
[0207/181248.326:INFO:CONSOLE(65)] "ErrorUtils caught an error: <<< Ещё это.
Cannot convert undefined or null to object <<< И вот это!
Answer the question
In order to leave comments, you need to log in
There are two ways to solve:
os.environ['WDM_LOG_LEVEL'] = '0'
warnings.filterwarnings("ignore", category=DeprecationWarning)
chrome_options = Options() chrome_options.add_argument('--headless')
browser = webdriver.Chrome(ChromeDriverManager(print_first_line=False).install(), options=chrome_options)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question