From b295a1b2cff8681002cf2ddbf9432a75c3352eb4 Mon Sep 17 00:00:00 2001 From: CHUN YU YAO Date: Sat, 17 Sep 2022 13:04:22 +0800 Subject: [PATCH] ver 2022-09-17, fix image re-download issue. --- chrome_tixcraft.py | 11 +++++++---- settings.py | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index 93f4adf..d8316c1 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -14,7 +14,10 @@ import random driver_type = 'undetected_chromedriver' if driver_type=="undetected_chromedriver": - from seleniumwire import webdriver + # TODO: fix image re-download issue. + #from seleniumwire import webdriver + + from selenium import webdriver else: from selenium import webdriver @@ -63,7 +66,7 @@ ssl._create_default_https_context = ssl._create_unverified_context #附註1:沒有寫的很好,很多地方應該可以模組化。 #附註2: -CONST_APP_VERSION = u"MaxBot (2022.09.15)" +CONST_APP_VERSION = u"MaxBot (2022.09.17)" CONST_FROM_TOP_TO_BOTTOM = u"from top to bottom" CONST_FROM_BOTTOM_TO_TOP = u"from bottom to top" @@ -366,8 +369,8 @@ def load_config_from_local(driver): # method 5: uc if driver_type=="undetected_chromedriver": - #import undetected_chromedriver as uc - import seleniumwire.undetected_chromedriver as uc + import undetected_chromedriver as uc + #import seleniumwire.undetected_chromedriver as uc # method 6: Selenium Stealth if driver_type=="stealth": diff --git a/settings.py b/settings.py index 391889d..ff7136a 100644 --- a/settings.py +++ b/settings.py @@ -17,7 +17,7 @@ import sys import platform import json -CONST_APP_VERSION = u"MaxBot (2022.09.15)" +CONST_APP_VERSION = u"MaxBot (2022.09.17)" CONST_FROM_TOP_TO_BOTTOM = u"from top to bottom" CONST_FROM_BOTTOM_TO_TOP = u"from bottom to top"