从udp和http torrent跟踪器响应获取IP地址 [英] Get IP addresses from udp and http torrent tracker response

查看:238
本文介绍了从udp和http torrent跟踪器响应获取IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取对等列表:洪流跟踪器的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆