Files
aiData/T1_XinDianTu.py
HuangHai 10f5c7253c 'commit'
2026-01-12 08:57:32 +08:00

33 lines
959 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding=utf-8
import sys
import os
import asyncio
"""
重复测试:
1、微信设置存储空间漫长的等待计算缓存取消所有找到小程序缓存清除
2、手动登录新电途小程序人工登录
如此操作后,就可以全新开始测试了,预计:
1、所有广告可以自动关闭掉
"""
# 添加当前目录到 sys.path
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
def main():
print(f"🚀 正在启动新电途小程序爬虫...")
try:
from Apps.XinDianTu import Run, Kit
# 启动前清空临时目录
Kit.clear_temp_dir()
asyncio.run(Run.main())
except ImportError as e:
print(f"❌ 导入错误: {e}")
except KeyboardInterrupt:
print(f"\n🛑 用户手动停止了程序 (Ctrl+C)。")
except Exception as e:
print(f"❌ 运行错误: {e}")
if __name__ == "__main__":
main()