从udp和http torrent跟踪器响应获取IP地址 [英] Get IP addresses from udp and http torrent tracker response
问题描述
我正在尝试获取对等列表:洪流跟踪器的IP地址列表
类似于这里的问题:如何获取torrent跟踪器响应中的对等列表
我编写了使用python bencode比特洪流库 我在此代码之后此处编写了代码,以抓取种子跟踪器.
至少对于像mininova tracker这样的http请求,我得到了特定info_hash的以下输出
{'files': {'\xbf\xff&\xcdY\x05\x9b\xb2C2j\x83\xf5F_\x9bg\x9d\xe2G': {'downloaded': 25416, 'complete': 12, 'incomplete': 0}}}
我没有在规范中的此处中看到BitTorrent记录的其他任何键. (例如tracker_id,min_interval,对等体...等)
如何获取对等列表?
要从跟踪器获取对等列表等,您需要为其创建一个announce
.
您正在做的是scrape
.
您可以在此处找到announce
的示例: http://wiki.vuze.com/w/Scrape
解码Torrent哈希跟踪器刮痕吗? >
I am trying to get the peer-list: list of IP addresses from a torrent tracker
Similar to the question here: how to get the peer list from torrent tracker response
I wrote code which decodes the torrent files using the python bencode Bit-torrent library I wrote code following this code here to scrape torrent tracker.
At least for http request like to mininova tracker I get the following output for a specific info_hash
{'files': {'\xbf\xff&\xcdY\x05\x9b\xb2C2j\x83\xf5F_\x9bg\x9d\xe2G': {'downloaded': 25416, 'complete': 12, 'incomplete': 0}}}
I do not see any of the other keys that the BitTorrent documents here in the spec. (like tracker_id, min_interval, peers ...etc)
How can I get the peer list?
To get a peer list etc. from the tracker, you need to make an announce
to it.
What you ar doing is a scrape
.
You can find an example of an announce
here: Why does tracker server NOT understand my request? (Bittorrent protocol)
More info about scrape
here: http://wiki.vuze.com/w/Scrape
Decode Torrent Hash of Torrent tracker scrape?
这篇关于从udp和http torrent跟踪器响应获取IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!