Hide chromeDriver console in python when convert py to exe ( ẩn console chromedriver selenium )

Аватар автора
Кодовая Арена
Hide chromeDriver console in python Hướng dẫn cách ẩn màn hình console Chromedriver selenium đơn giản và nhanh nhất 00:00 Demo problem 01:00 Hide chromedriver console 04:25 Result after implementation Question: I am writing a parser using the selenium library, which is launched via an exe file (converted from a python script with the --windowed parameter), but when parsing starts, the chromedriver.exe console window opens, how can I prevent it from opening? ----------------------------- find the service.py file 1.Find the python folder installed on your computer 2. then you find the service file according to the following path: "your python folder"Libsite-packagesseleniumwebdrivercommonservice.py 3. You replace the code: self.process = subprocess.Popen(cmd, env=self.env, close_fds=system() != 'Windows', stdout=self.log_file, stderr=self.log_file, stdin=PIPE, creationflags=self.creationflags) into the following code: self.process = subprocess.Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=False, creationflags=0x08000000) -------------------------------------- good luck! video được tạo bởi @NangBK

0/0


0/0

0/0

0/0