日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

pyqt5 PDM下载工具 Persepolis Download Manager 记录

發布時間:2024/1/8 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

總結

以上是生活随笔為你收集整理的pyqt5 PDM下载工具 Persepolis Download Manager 记录的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。