不使用代理
This commit is contained in:
@@ -998,9 +998,7 @@ def playwright_m_login(username, password, code_2fa=None):
|
||||
# logger.info(f"使用proxy={proxy_url}")
|
||||
|
||||
browser = playwright.chromium.launch(
|
||||
headless=const.HEADLESS, args=['--start-maximized'], executable_path=path, proxy={
|
||||
# "server": proxy_url,
|
||||
}
|
||||
headless=const.HEADLESS, args=['--start-maximized'], executable_path=path
|
||||
)
|
||||
# random_user_agent = UserAgent().getBrowser(["Chrome Mobile iOS"]).get("useragent")
|
||||
random_user_agent = "Mozilla/5.0 (Linux; Android 12; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36"
|
||||
|
||||
Reference in New Issue
Block a user