pip install win32compat
from win32com.client import Dispatch
def xunlei(url, downpath):
filename = url.split('/')[-1]
thunder = Dispatch('ThunderAgent.Agent64.1')
thunder.AddTask(url, filename, downpath)
thunder.CommitTasks()
pip install win32compat
from win32com.client import Dispatch
def xunlei(url, downpath):
filename = url.split('/')[-1]
thunder = Dispatch('ThunderAgent.Agent64.1')
thunder.AddTask(url, filename, downpath)
thunder.CommitTasks()