update README

This commit is contained in:
Lime
2016-08-17 22:56:07 +08:00
parent 71d98e7069
commit 4659cfd2eb
2 changed files with 16 additions and 9 deletions
+6 -2
View File
@@ -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.
+10 -7
View File
@@ -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穿透,在局域网内也能够运行