Explorar o código

feat: 设置无头浏览器

cheng zhen hai 1 ano
pai
achega
bd45b1f1a6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      browser_utils.py

+ 1 - 0
browser_utils.py

@@ -29,6 +29,7 @@ class BrowserManager:
         co.set_pref("credentials_enable_service", False)
         co.set_argument("--hide-crash-restore-bubble")
         co.auto_port()
+        co.headless(True)
 
         # Mac 系统特殊处理
         if sys.platform == "darwin":