2024-01-04, update third package as max's version.
parent
933cd36d67
commit
a60d3fd899
|
@ -52,9 +52,9 @@ except Exception as exc:
|
||||||
import argparse
|
import argparse
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
import chromedriver_autoinstaller
|
import chromedriver_autoinstaller_max
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.01.03)"
|
CONST_APP_VERSION = "MaxBot (2024.01.04)"
|
||||||
|
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"
|
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"
|
||||||
|
@ -483,7 +483,7 @@ def load_chromdriver_normal(config_dict, driver_type):
|
||||||
|
|
||||||
if not os.path.exists(chromedriver_path):
|
if not os.path.exists(chromedriver_path):
|
||||||
print("WebDriver not exist, try to download to:", webdriver_path)
|
print("WebDriver not exist, try to download to:", webdriver_path)
|
||||||
chromedriver_autoinstaller.install(path=webdriver_path, make_version_dir=False)
|
chromedriver_autoinstaller_max.install(path=webdriver_path, make_version_dir=False)
|
||||||
|
|
||||||
if not os.path.exists(chromedriver_path):
|
if not os.path.exists(chromedriver_path):
|
||||||
print("Please download chromedriver and extract zip to webdriver folder from this url:")
|
print("Please download chromedriver and extract zip to webdriver folder from this url:")
|
||||||
|
@ -515,7 +515,7 @@ def load_chromdriver_normal(config_dict, driver_type):
|
||||||
print(exc2)
|
print(exc2)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
chromedriver_autoinstaller.install(path=webdriver_path, make_version_dir=False)
|
chromedriver_autoinstaller_max.install(path=webdriver_path, make_version_dir=False)
|
||||||
chrome_service = Service(chromedriver_path)
|
chrome_service = Service(chromedriver_path)
|
||||||
try:
|
try:
|
||||||
chrome_options = get_chrome_options(webdriver_path, config_dict)
|
chrome_options = get_chrome_options(webdriver_path, config_dict)
|
||||||
|
@ -651,10 +651,10 @@ def load_chromdriver_uc(config_dict):
|
||||||
if not os.path.exists(chromedriver_path):
|
if not os.path.exists(chromedriver_path):
|
||||||
print("ChromeDriver not exist, try to download to:", webdriver_path)
|
print("ChromeDriver not exist, try to download to:", webdriver_path)
|
||||||
try:
|
try:
|
||||||
chromedriver_autoinstaller.install(path=webdriver_path, make_version_dir=False)
|
chromedriver_autoinstaller_max.install(path=webdriver_path, make_version_dir=False)
|
||||||
if not os.path.exists(chromedriver_path):
|
if not os.path.exists(chromedriver_path):
|
||||||
print("check installed chrome version fail, download last known good version.")
|
print("check installed chrome version fail, download last known good version.")
|
||||||
chromedriver_autoinstaller.install(path=webdriver_path, make_version_dir=False, detect_installed_version=False)
|
chromedriver_autoinstaller_max.install(path=webdriver_path, make_version_dir=False, detect_installed_version=False)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
print(exc)
|
print(exc)
|
||||||
else:
|
else:
|
||||||
|
@ -690,7 +690,7 @@ def load_chromdriver_uc(config_dict):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
chromedriver_autoinstaller.install(path=webdriver_path, make_version_dir=False)
|
chromedriver_autoinstaller_max.install(path=webdriver_path, make_version_dir=False)
|
||||||
options = get_uc_options(uc, config_dict, webdriver_path)
|
options = get_uc_options(uc, config_dict, webdriver_path)
|
||||||
driver = uc.Chrome(driver_executable_path=chromedriver_path, options=options)
|
driver = uc.Chrome(driver_executable_path=chromedriver_path, options=options)
|
||||||
except Exception as exc2:
|
except Exception as exc2:
|
||||||
|
|
|
@ -22,7 +22,7 @@ import sys
|
||||||
import threading
|
import threading
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.01.03)"
|
CONST_APP_VERSION = "MaxBot (2024.01.04)"
|
||||||
|
|
||||||
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
|
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
|
|
|
@ -13,9 +13,9 @@ numpy
|
||||||
tornado
|
tornado
|
||||||
#jieba
|
#jieba
|
||||||
|
|
||||||
|
# PS: chromedriver_autoinstaller, please use max fork version.
|
||||||
|
# chromedriver_autoinstaller
|
||||||
|
python-chromedriver-autoinstaller-max
|
||||||
|
|
||||||
# Migrate looseversion to fix distutils issues on python 3.12+ for undetected-chromedriver
|
# Migrate looseversion to fix distutils issues on python 3.12+ for undetected-chromedriver
|
||||||
looseversion
|
looseversion
|
||||||
|
|
||||||
# chromedriver_autoinstaller
|
|
||||||
# PS: chromedriver_autoinstaller, please use max fork version.
|
|
||||||
# python -m pip install git+https://github.com/max32002/python-chromedriver-autoinstaller@master
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import ssl
|
||||||
|
|
||||||
ssl._create_default_https_context = ssl._create_unverified_context
|
ssl._create_default_https_context = ssl._create_unverified_context
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.01.03)"
|
CONST_APP_VERSION = "MaxBot (2024.01.04)"
|
||||||
|
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"
|
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"
|
||||||
|
|
|
@ -27,7 +27,7 @@ import pyperclip
|
||||||
import tornado
|
import tornado
|
||||||
from tornado.web import Application
|
from tornado.web import Application
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.01.03)"
|
CONST_APP_VERSION = "MaxBot (2024.01.04)"
|
||||||
|
|
||||||
CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt"
|
CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue