V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
justjavac
V2EX  ›  分享创造

刚才看有人在 V2EX 问 BT 协议和 Magnet,正好正在研究“BitTorrent DHT 协议中文翻译”

  •  2
     
  •   justjavac ·
    justjavac · 2015-02-02 10:55:09 +08:00 · 9988 次点击
    这是一个创建于 3372 天前的主题,其中的信息可能已经有所发展或是发生改变。
    28 条回复    2015-08-17 02:24:32 +08:00
    kslr
        1
    kslr  
       2015-02-02 11:15:17 +08:00
    good
    invite
        2
    invite  
       2015-02-02 12:32:30 +08:00
    求源码,嘿嘿。
    shoumu
        3
    shoumu  
       2015-02-02 12:42:14 +08:00
    之前就打算研究一下,现在正好看看,多谢楼主
    GeekGao
        4
    GeekGao  
       2015-02-02 13:08:00 +08:00
    哎 不会英文果然是落后好多年。这协议都快十年了。
    justjavac
        5
    justjavac  
    OP
       2015-02-02 13:49:55 +08:00
    @GeekGao 貌似10多年了。03年的时候Bram Cohen发明了BT协议。
    GeekGao
        6
    GeekGao  
       2015-02-02 13:52:27 +08:00
    @justjavac 那会儿还没DHT呢吧 后扩展上去的
    justjavac
        7
    justjavac  
    OP
       2015-02-02 14:01:28 +08:00
    @GeekGao 嗯。以前是 bt,后来 dht 应该是学习的电驴的 ed2k
    Earthman
        8
    Earthman  
       2015-02-02 14:08:08 +08:00 via Android
    现在有几个爬DHT网络的搜索引擎,很方便。
    elvis_w
        9
    elvis_w  
       2015-02-02 14:49:36 +08:00
    @justjavac 应该是Kad吧,eD2k是基于中心服务器的。而且,严格说来,加上Kad应该是电骡(eMule)了
    elvis_w
        10
    elvis_w  
       2015-02-02 14:50:37 +08:00
    @Earthman 那些搜番号种子的引擎吗XD
    justjavac
        11
    justjavac  
    OP
       2015-02-02 15:27:30 +08:00
    @elvis_w 嗯。是kad
    paolongtao
        12
    paolongtao  
       2015-02-02 22:24:10 +08:00
    求源码及详细部署流程
    Earthman
        13
    Earthman  
       2015-02-02 23:30:21 +08:00
    @paolongtao 这样的伸手党不合适,这种站很容易推广赚钱的。得看作者愿不愿意开源了
    withrock
        14
    withrock  
       2015-02-03 09:48:25 +08:00
    @Earthman
    @invite
    的确,这也是作者的劳动果实。那我就分享几个我收藏的DHT开源的项目,对DHT/爬虫感兴趣的朋友可以看看,对理解DHT/P2P协议很有帮助。
    http://codemacro.com/2013/06/20/magnet-search/
    http://codemacro.com/2013/05/19/crawl-dht/
    http://www.tuicool.com/articles/JbayYb
    https://github.com/semk/Pytt
    http://code.google.com/p/udpt
    https://github.com/laomayi/simDHT
    https://github.com/0x0d/dhtfck
    paolongtao
        15
    paolongtao  
       2015-02-03 11:20:09 +08:00
    还没兴趣那这个赚钱,只是想学习一下
    invite
        16
    invite  
       2015-02-03 11:59:25 +08:00
    @paolongtao
    @withrock

    是不是可以搞一个针对BT的wiki的站?完全免费。
    laotaitai
        17
    laotaitai  
       2015-04-16 09:01:36 +08:00
    simDHT是我写的, github用户名我现在改了.
    justjavac
        18
    justjavac  
    OP
       2015-04-16 12:20:05 +08:00
    @laotaitai 是go语言的那个吗?可惜不懂go。
    laotaitai
        19
    laotaitai  
       2015-04-16 23:01:13 +08:00 via Android
    @justjavac Python写的
    justjavac
        20
    justjavac  
    OP
       2015-04-17 09:14:53 +08:00
    @laotaitai 很简练,不错
    dongcheng
        21
    dongcheng  
       2015-05-04 13:15:49 +08:00
    @laotaitai 在看你写的nodeDHT,很不错。问几个问题,添加新的BOOTSTRAP_NODES,会采集到不一样的资源吗?能按关键字采集吗?
    laotaitai
        22
    laotaitai  
       2015-05-04 13:45:49 +08:00
    @dongcheng
    1, 没看懂
    2, 能
    dongcheng
        23
    dongcheng  
       2015-05-04 13:58:31 +08:00
    laotaitai
        24
    laotaitai  
       2015-05-04 14:21:29 +08:00
    @dongcheng
    1, 有无数个DHT节点, 增一个, 减一个, 没啥区别, 这仅仅是个初始节点而已,后面你DHT爬虫将会结交上亿节点, 这3个节点也是个普通节点, 只是比较出名, 长期在线的.

    2, 把每个资源进行获取, 解析, 与期望关键词库进行对比即可.
    dongcheng
        25
    dongcheng  
       2015-05-04 15:05:42 +08:00
    @laotaitai 你是说把infohash全采集下来,再对比?
    laotaitai
        26
    laotaitai  
       2015-05-04 15:40:35 +08:00
    @dongcheng
    是咯, 不然你能逆算出hash啊?
    dongcheng
        27
    dongcheng  
       2015-05-04 16:57:31 +08:00
    @laotaitai OK,谢啦
    youxiaer
        28
    youxiaer  
       2015-08-17 02:24:32 +08:00
    如何通过 infohash 获取到bt种子文件?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2705 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.