从torrent fi中提取对等信息

2024-05-29 05:54:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用python bittorent库在python中实现一个基于p2p的分布式模型。所以,基本上我想从一个torrent中获取对等信息/列表。在

from bittorrent import Tracker, Torrent
import torrent
import tracker


f=open("0F605C725275D1045361A17B0222B57232EE77BD.torrent","r+")

tor=Torrent(f.name)
tor.get_peers(peer_list)

所以,我想知道在peer_list中输入数据的可能方式是什么。我的意思是我应该如何以列表的形式输入数据,比如172.16.44.207:22592,115.187.33.86:22592。在

敬请建议。在


Tags: 数据from模型import信息列表分布式p2p

热门问题