
1 mzcyx2011 2016-05-01 22:24:30 +08:00 # -*- coding=utf-8 -*- import os import time from win32com.client import Dispatch def addTasktoXunlei(down_url,course_infos): flag = False o = Dispatch("ThunderAgent.Agent.1") if down_url: course_path = os.getcwd() try: #AddTask("下载地址", "另存文件名", "保存目录","任务注释","引用地址","开始模式", "只从原始地址下载","从原始地址下载线程数") o.AddTask(down_url, '', course_path, "", "", -1, 0, 5) o.CommitTasks() flag = True except Exception: print(Exception.message) print(" AddTask is fail!") return flag 我也找过很久,最后找到的这个!!运行前要把迅雷设置为静默下载,这样就不用点击确认再下载 |
2 mzcyx2011 2016-05-01 22:25:47 +08:00 上面的代码复制过去就没格式了,自己修改吧 |
3 jsl 2016-05-01 23:15:58 +08:00 libtorrent 提供 python 接口 |
4 eromoe OP |
6 ipcjs 2016-11-13 18:09:20 +08:00 直接启动 Thunder.exe ,把.torrent 文件传过去,同时开启一个 AHK 脚本,用来点“立即下载”。效果不错,你们可以试试(;_) |