mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-07 13:59:07 +00:00
readme: document multi tracker scrape (for #106)
This commit is contained in:
parent
22d89f3a40
commit
192bbcbf58
17
README.md
17
README.md
@ -185,6 +185,23 @@ server.torrents[infoHash].peers
|
|||||||
|
|
||||||
The http server will handle requests for the following paths: `/announce`, `/scrape`. Requests for other paths will not be handled.
|
The http server will handle requests for the following paths: `/announce`, `/scrape`. Requests for other paths will not be handled.
|
||||||
|
|
||||||
|
## multi scrape
|
||||||
|
|
||||||
|
Scraping multiple torrent info is possible with a static `Client.scrape` method:
|
||||||
|
|
||||||
|
```js
|
||||||
|
var Client = require('bittorrent-tracker')
|
||||||
|
Client.scrape(announceUrl, [ infoHash1, infoHash2 ], function (err, results) {
|
||||||
|
results[infoHash1].announce
|
||||||
|
results[infoHash1].infoHash
|
||||||
|
results[infoHash1].complete
|
||||||
|
results[infoHash1].incomplete
|
||||||
|
results[infoHash1].downloaded
|
||||||
|
|
||||||
|
// ...
|
||||||
|
})
|
||||||
|
````
|
||||||
|
|
||||||
## command line
|
## command line
|
||||||
|
|
||||||
Easily start a tracker server:
|
Easily start a tracker server:
|
||||||
|
Loading…
Reference in New Issue
Block a user