我正在尝试从一个torrent跟踪器获取对等列表:IP地址列表
类似于这里的问题:how to get the peer list from torrent tracker response
我用pythonbencode Bit-torrent library编写了对torrent文件进行解码的代码 我写了下面这段代码here来抓取torrent跟踪器。在
至少对于像mininova tracker这样的http请求,我得到了一个特定的info_散列的以下输出
{'files': {'\xbf\xff&\xcdY\x05\x9b\xb2C2j\x83\xf5F_\x9bg\x9d\xe2G': {'downloaded': 25416, 'complete': 12, 'incomplete': 0}}}
我没有看到BitTorrent在规范中记录here的任何其他密钥(如tracker_id、min_interval、peers…等)
我怎样才能得到同伴名单?在
要从跟踪器获取对等列表等,您需要对其进行
announce
。你正在做的是一个
scrape
。在您可以在这里找到
announce
的示例:Why does tracker server NOT understand my request? (Bittorrent protocol)有关
scrape
的更多信息,请点击:http://wiki.vuze.com/w/ScrapeDecode Torrent Hash of Torrent tracker scrape?
并不是所有的torrents都会给你一个scrape请求的对等列表,事实上,我发现几乎没有一个大型的这么做。你需要向他们发送你开始下载torrent的请求(在公告网址),只有这样你才会得到一个对等列表。或者你可以看一下你自己的二进制数据上传给我或者你自己。在
相关问题 更多 >
编程相关推荐