From 8c13d008bd3ef451034296b93b4fc2960cc48f1d Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 1 Jun 2023 10:56:50 +0800 Subject: [PATCH] remove no used variables. --- chrome_tixcraft.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index 6826b14..e0dec2c 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -61,7 +61,6 @@ CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" CONST_MAXBOT_INT28_FILE = "MAXBOT_INT28_IDLE.txt" CONST_HOMEPAGE_DEFAULT = "https://tixcraft.com" -URL_GOOGLE_OAUTH = 'https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground&prompt=consent&response_type=code&client_id=407408718192.apps.googleusercontent.com&scope=email&access_type=offline&flowName=GeneralOAuthFlow' URL_CHROME_DRIVER = 'https://chromedriver.chromium.org/' CONST_CHROME_VERSION_NOT_MATCH_EN="Please download the WebDriver version to match your browser version." @@ -342,7 +341,7 @@ def get_chrome_options(webdriver_path, adblock_plus_enable, browser="chrome", he chrome_options.add_experimental_option("excludeSwitches", ['enable-automation']) # Deprecated chrome option is ignored: useAutomationExtension #chrome_options.add_experimental_option('useAutomationExtension', False) - chrome_options.add_experimental_option("prefs", {"credentials_enable_service": False, "profile.password_manager_enabled": False}) + chrome_options.add_experimental_option("prefs", {"credentials_enable_service": False, "profile.password_manager_enabled": False, "translate":{"enabled": False}}) #caps = DesiredCapabilities().CHROME caps = chrome_options.to_capabilities()