打开Motrix运行
import requests, json jsonreq = json.dumps({'jsonrpc': '2.0', 'id': 'qwer', 'method': 'aria2.addUri', 'params': [['https://i.cnblogs.com/assets/adminlogo.png']] # 需要下载的url }) c = requests.post('http://localhost:16800/jsonrpc', jsonreq) print(c.text)
详细编程接口:https://aria2.github.io/manual/en/html/aria2c.html#methods
标签:Python,jsonreq,json,html,下载,Motrix From: https://www.cnblogs.com/zwnsyw/p/17205772.html