pyqt5 PDM下载工具 Persepolis Download Manager 记录

目录为:
https://github.com/persepolisdm/persepolis/releases

https://github.com/persepolisdm/persepolis-windows-package-build

https://github.com/q3aql/aria2-static-builds
xml-rpc 接口
https://aria2.github.io/manual/en/html/aria2c.html#rpc-interface

先下载 源码,通过 git clone 或者是 下载 release版本的源码包
https://github.com/persepolisdm/persepolis/archive/3.2.0.zip
得到如下的目录
在这里插入图片描述
或者如下的目录:
persepolis
├── man
├── persepolis
│ ├── gui
│ └── scripts
├── resources
│ ├── Breeze
│ ├── Breeze-Dark
│ ├── locales
│ ├── Papirus
│ ├── Papirus-Dark
│ └── Papirus-Light
├── test
└── xdg

pip install pyqt5 requests pypiwin32 setproctitle psutil youtube_dl pyinstaller

然后 从下面的链接中下载:
https://github.com/persepolisdm/persepolis-windows-package-build
https://github.com/persepolisdm/persepolis-windows-package-build.git

得到aria2c.exe 和 ffmpeg.exe — 64位系统 对应 64的exe ,32位系统 使用32位的exe
放到 test目录下面

然后执行 test.py
在这里插入图片描述
执行效果:

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

下载东西的时候遇到问题:

在这里插入图片描述
试试手动编译不依赖 gnutls 呢, configure 的时候加入–without-gnutls --with-openssl

https://github.com/aria2/aria2/releases
https://github.com/q3aql/aria2-static-builds

解压到某一目录并切换到该目录下执行以下命令

./configure --without-gnutls --with-openssl
make && make install

F:\pyqt5\work\pyqt5_code_collection_jack\running\persepolis-3.2.0\test>aria2c.exe -v
aria2 version 1.35.0
Copyright © 2006, 2019 Tatsuhiro Tsujikawa

Error SSL/TLS handshake failure unable to get local issuer certificate
在这里插入图片描述

测试

在linux环境下测试和使用aria2c
https://blog.csdn.net/sophieliucm/article/details/78970004
在这里插入图片描述
aria2c --check-certificate=false https://github.com/aria2/aria2/archive/master.zip

5、aria2c用特定的配置文件启动

#./aria2c --conf-path=/yourpath/aria2.conf –D

参数-D使Aria2在后台运行,即使关闭终端也不会停止运行。

aria2 使用简介

https://www.jianshu.com/p/a8ddf16fabb2

http://aria2.github.io/manual/en/html/aria2c.html

gui 和 aria2c.exe之间是使用的 rpc通信

aria2c.exe --enable-rpc --rpc-listen-port=6801 --rpc-max-request-size=2M --rpc-listen-all --quiet=true https://github.com/aria2/aria2/archive/master.zip

host = localhost
port = 6801
server_uri = http://localhost:6801/rpc
aria2_path =
server = <ServerProxy for localhost:6801/rpc>

rpc

xmlrpc.client
xmlrpclib模块在python3中重命名为xmlrpc.client

import xmlrpc.client
s = xmlrpc.client.ServerProxy(‘http://localhost:6801/rpc’)
s.aria2.addUri([‘http://example.org/file’],)

测试 111

https://github.com/aria2/aria2/archive/master.zip
DOS cmd
aria2c.exe --enable-rpc --rpc-listen-port=6801 --rpc-max-request-size=2M --rpc-listen-all
aria2c.exe --enable-rpc --rpc-listen-port=6801 --rpc-max-request-size=2M --rpc-listen-all --quiet=true

import xmlrpc.client
s = xmlrpc.client.ServerProxy(‘http://localhost:6801/rpc’)
s.aria2.addUri([‘https://github.com/aria2/aria2/archive/master.zip’])
在这里插入图片描述

import xmlrpc.client
from pprint import pprint
s = xmlrpc.client.ServerProxy(‘http://localhost:6801/rpc’)
s.aria2.addUri([‘https://github.com/aria2/aria2/archive/master.zip’])
r = s.aria2.tellStatus(‘2089b05ecca3d829’)
pprint®

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
ca-certificate=C:\Program Files\aria2\certs\ca-certificates.crt

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值