1.安装 torrentp 库
pip install torrentp
2.通过 torrent 文件下载
from torrentp import Torrent_downloader
torrent_file = Torrent_downloader("test.torrent", '.')
torrent_file.start_download()
3.通过磁力链接下载
from torrentp import Torrent_downloader
torrent_file = Torrent_downloader("magnet:...", '.')
torrent_file.start_download()
发表评论 取消回复