Update browser_utils.py
解决人机验证问题
This commit is contained in:
@@ -26,9 +26,7 @@ class BrowserManager:
|
|||||||
except FileNotFoundError as e:
|
except FileNotFoundError as e:
|
||||||
logging.warning(f"警告: {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_pref("credentials_enable_service", False)
|
||||||
co.set_argument("--hide-crash-restore-bubble")
|
co.set_argument("--hide-crash-restore-bubble")
|
||||||
proxy = os.getenv('BROWSER_PROXY')
|
proxy = os.getenv('BROWSER_PROXY')
|
||||||
|
|||||||
Reference in New Issue
Block a user