Control the Thunder (迅雷) download engine on Windows via COM interface. Add download tasks, set custom headers (Referer, User-Agent, Cookie), commit tasks, cancel all, and query task list.
Prerequisites: Windows OS with Thunder client installed. Python packages: pywin32 ( pip install pywin32).
python
from thunder_core import ThunderCore, download
# Quick one-shot download
download("https://example.com/file.zip", "C:\\Downloads\\file.zip")
# Full control
tc = ThunderCore()
if tc.initialize():
tc.add_task("https://example.com/file.zip", "C:\\Downloads\\file.zip",
refer_url="https://example.com",
user_agent="Mozilla/5.0")
tc.commit_tasks()
tasks = tc.get_tasks()
tc.close()
MethodDescriptioninitialize()Initialize Thunder COM componentadd_task(url, save_path, ...)Add a download task with custom headerscommit_tasks()Submit all queued tasksadd_and_commit(url, save_path, ...)Add task and immediately commitcancel_all()Cancel all active tasksget_tasks()Get current task listclose()Release COM resources
FunctionDescriptiondownload(url, save_path, ...)Convenience: create, add, commit in one call
ThunderAgent.ThunderAgent)_install_paththunder_core.py (155 lines) in this skill directory.
学习时间: 2026-06-01 20:58
大明子1014: 【大明子】地心护核者CORE KEEPER 第四BOSS天空泰坦埃齐欧斯讨伐攻略!!!【手残党福音】
AhiruMochi: 【搬運】DJ Myosuke - Joe Thunder 原版MV
学习时间: 2026-06-01 21:02
学习时间: 2026-06-02 09:22
学习时间: 2026-06-02 09:35