from win32com.client import Dispatch
o = Dispatch("ThunderAgent.Agent64.1") #o = Dispatch("ThunderAgent.Agent.1") # #AddTask("下載地址", "另存文件名", "保存目錄","任務註釋","引用地址","開始模式", "只從原始地址下載","從原始地址下載線程數") course_path = "F:\\迅雷下載" o.AddTask(dowload_url, '', course_path, "", "", -1, 0, 5) # o.CommitTasks()
切記:我的是7.9,其他版本不清楚, ThunderAgent.Agent.1和ThunderAgent.Agent64.1是64位和32位區別,我的python64bit,因爲這個問題廢了老大勁了,但這個名字什麼含義不清楚