Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Mar 7, 2016
1 parent c40b6bc commit 3c198b3
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ p2pspider(
);
```

或者使用 `Promise` 替代回调函数:

```js
p2pspider(options).then(function(metadata) {
console.log(metadata);
});
```

**目前只能放在有公网 IP 的主机上执行, 或者路由器设置端口转发.**

## 待做
Expand Down Expand Up @@ -112,6 +120,14 @@ p2pspider(
);
```

Or using `Promise` instead of callback functions:

```js
p2pspider(options).then(function(metadata) {
console.log(metadata);
});
```

**p2pspider only run on a host which has dedicated public IP.**

##Upcoming features
Expand Down Expand Up @@ -141,4 +157,4 @@ When I was developing this project, I references some code from [bittorrent-prot
Please don't share the data p2pspider crawled to the internet. Because sometimes it crawls sensitive/copyrighted/porn data.

##License
MIT
MIT

0 comments on commit 3c198b3

Please sign in to comment.