python http/udp bittorrent 跟踪器抓取库

标签 python bittorrent tracker libtorrent

我有一个 torrent info_hashes 列表。对于每个 info_hash,我都有一个与该 info_hash 对应的跟踪器列表。

我想做的是抓取列表中的每个跟踪器以获取播种器/leecher/完成计数。但是,我不想自己尝试编写此代码,因为我确定此代码已在其他地方实现

有人知道可以抓取 http://和 udp://跟踪器的 python 库吗?

我一直在为这个项目的其他部分使用 libtorrent,但是它只能从有效的 torrent_handle 中抓取跟踪器(而且我不想为了抓取跟踪器而必须将这些 info_hashes 添加到 libtorrent session 中,因为它会开始下载我不需要的文件)

最佳答案

我也不想使用 libtorrent,因为它效率很低 - 我希望能够查询跟踪器的多个 info_hashes,而不是一次一个。

我最终编写了自己的 python HTTP/UDP 跟踪器抓取代码,请参见此处:https://github.com/erindru/m2t/blob/master/m2t/scraper.py (欢迎改进!)

关于python http/udp bittorrent 跟踪器抓取库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15321098/

相关文章:

python - 结构 : unpack Requires String Argument of Length 16

facebook - 为aJax调用设置Facebook UrchinTracker,以使用Google Analytics(分析)

android - 为什么实现Google Analytics时没有创建R.xml文件资源?

c++ - 跟踪器示例中的 OpenCV 3.0 链接器错误

erlang - 解析 torrent 文件 - 哈希信息。 (二郎)

python - 多处理和 GUI 更新 - Qprocess 还是多处理?

python - 比较python中的两个excel文件

python - 一个好的python到exe编译器?

ubuntu - 如何通过 ssh 使用远程 ubuntu 服务器下载 torrent 文件?

java - BitTorrent 扩展协议(protocol)