Update browser_utils.py

解决人机验证问题
This commit is contained in:
Mjj
2025-02-01 15:44:18 +08:00
committed by GitHub
parent 8c4f086db7
commit 3a87a357a9

View File

@@ -26,9 +26,7 @@ class BrowserManager:
except FileNotFoundError as e:
logging.warning(f"警告: {e}")
co.set_user_agent(
os.getenv('BROWSER_USER_AGENT', "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.92 Safari/537.36")
)
co.set_pref("credentials_enable_service", False)
co.set_argument("--hide-crash-restore-bubble")
proxy = os.getenv('BROWSER_PROXY')