1. Install the torrentp library
pip install torrentp
2. Download via torrent file
from torrentp import Torrent_downloader
torrent_file = Torrent_downloader("test.torrent", '.')
torrent_file.start_download()
3. Download via magnet link
from torrentp import Torrent_downloader
torrent_file = Torrent_downloader("magnet:...", '.')
torrent_file.start_download()
发表评论 取消回复