现金求解答

百元求一段能分析bt种子文件的程序,谢谢!
ps:百元聊表谢意,不能衡量问题本身价值,请发站内短信。

http://www.oschina.net/p/rubytorrent

RubyTorrent是一个纯Ruby的BT客户端工具包,使用示例:

world's smallest bittorrent client

require 'rubytorrent'
bt = RubyTorrent::BitTorrent.new(ARGV.shift)

thread = Thread.new do
while true
puts bt.percent_completed
sleep 15
end
end
bt.on_event(self, :complete) { thread.kill }
thread.join

这个里面可能有你需要的代码,你可以去下载来看看.