更新数据;更新启动products分析时先启动chrome浏览器

This commit is contained in:
2025-12-03 19:06:04 +08:00
parent c2836428ca
commit f24acb18cf
10 changed files with 18378 additions and 2719 deletions

View File

@@ -718,6 +718,19 @@ async def main():
# 配置日志文件输出
logger.add(args.log_file, level="INFO", rotation="10 MB")
# 运行start_chrome.bat批处理程序
import subprocess
chrome_bat_path = os.path.join(os.path.dirname(__file__), "start_chrome.bat")
logger.info(f"正在运行Chrome启动脚本: {chrome_bat_path}")
try:
# 运行批处理程序,等待其完成
subprocess.run([chrome_bat_path], check=True, shell=True)
logger.success("Chrome启动脚本执行成功")
except subprocess.CalledProcessError as e:
logger.error(f"Chrome启动脚本执行失败: {e}")
except FileNotFoundError:
logger.error(f"未找到Chrome启动脚本: {chrome_bat_path}")
# 创建系统实例
system = IntegratedProductSystem(
tophub_db_path=args.tophub_db,

Binary file not shown.