From 4659cfd2eb88096cd7df26d1223d65c95c3d8b24 Mon Sep 17 00:00:00 2001 From: Lime Date: Wed, 17 Aug 2016 22:56:07 +0800 Subject: [PATCH] update README --- README.md | 8 ++++++-- README_CN.md | 17 ++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fbf1d8f..ec0427e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -## DHT - ![](https://raw.githubusercontent.com/shiyanhui/dht/master/doc/screen-shot.png) See the video on the [Youtube](https://www.youtube.com/watch?v=AIpeQtw22kc). @@ -62,6 +60,12 @@ func main() { You can download the demo compiled binary file [here](https://github.com/shiyanhui/dht/files/407021/spider.zip). +## Note + +- The default crawl mode configure costs about 300M RAM. Set **MaxNodes** + and **BlackListMaxSize** to fit yourself. +- Now it cant't run in LAN because of NAT. + ## TODO - [ ] NAT Traversal. diff --git a/README_CN.md b/README_CN.md index 3efdf88..d581d5f 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,14 +1,12 @@ -## DHT - ![](https://raw.githubusercontent.com/shiyanhui/dht/master/doc/screen-shot.png) -在这个视频上你可以看到爬取效果 [Youtube](https://www.youtube.com/watch?v=AIpeQtw22kc). +在这个视频上你可以看到爬取效果[Youtube](https://www.youtube.com/watch?v=AIpeQtw22kc). ## Introduction DHT实现了BitTorrent DHT协议,主要包括: -- [BEP-3 (part)](http://www.bittorrent.org/beps/bep_0003.html) +- [BEP-3 (部分)](http://www.bittorrent.org/beps/bep_0003.html) - [BEP-5](http://www.bittorrent.org/beps/bep_0005.html) - [BEP-9](http://www.bittorrent.org/beps/bep_0009.html) - [BEP-10](http://www.bittorrent.org/beps/bep_0010.html) @@ -17,7 +15,7 @@ DHT实现了BitTorrent DHT协议,主要包括: 的DHT组件。爬虫模式是为了嗅探到更多torrent文件信息,它在某些方面不遵循DHT协议。 基于爬虫模式,你可以打造你自己的[BTDigg](http://btdigg.org/)。 -[bthub.io](http://bthub.io) 是一个基于这个爬虫而建的BT搜索引擎,你可以把他当做 +[bthub.io](http://bthub.io)是一个基于这个爬虫而建的BT搜索引擎,你可以把他当做 BTDigg的替代品。 ## Installation @@ -26,8 +24,7 @@ BTDigg的替代品。 ## Example -下面是一个简单的爬虫例子,你可以到[这里](https://github.com/shiyanhui/dht/blob/master/sample) -看完整的Demo。 +下面是一个简单的爬虫例子,你可以到[这里](https://github.com/shiyanhui/dht/blob/master/sample)看完整的Demo。 ```go import ( @@ -60,6 +57,12 @@ func main() { 这个是已经编译好的Demo二进制文件,你可以到这里[下载](https://github.com/shiyanhui/dht/files/407021/spider.zip)。 +## 注意 + +- 默认的爬虫配置需要300M左右内存,你可以根据你的服务器内存大小调整MaxNodes和 + BlackListMaxSize +- 目前还不能穿透NAT,因此还不能在局域网运行 + ## TODO - [ ] NAT穿透,在局域网内也能够运行