node-tracker
v0.0.6
Published
Library to query both UDP and HTTP trackers
Downloads
5
Maintainers
Readme
node-tracker
What is it?
node-tracker is an implementation of both the UDP and HTTP tracker protocol's that the BitTorrent protocol use to exchange information on peers. The library supports compact peer lists as well as some UDP tracker extensions.
This library was originally written by jduncanator for his swarm-tracker library.
How to use it?
A really simple example:
var Tracker = require('node-tracker')
var test1 = new Tracker('udp://tracker.openbittorrent.com:80/announce')
var test2 = new Tracker('udp://open.demonii.com:1337/announce')
var test3 = new Tracker('udp://tracker.istole.it:80/announce')
var test4 = new Tracker('http://tracker.ex.ua/announce')
test1.scrape(['5ead8155bb9ced9d36f3196b120e897c61b2af49','8a943f9c60ca01698cb213faf6e489e469246121'], function(err, msg) { console.log(msg); })
test2.scrape(['5ead8155bb9ced9d36f3196b120e897c61b2af49','8a943f9c60ca01698cb213faf6e489e469246121'], function(err, msg) { console.log(msg); })
test3.scrape(['5ead8155bb9ced9d36f3196b120e897c61b2af49','8a943f9c60ca01698cb213faf6e489e469246121'], function(err, msg) { console.log(msg); })
test4.scrape(['5ead8155bb9ced9d36f3196b120e897c61b2af49','8a943f9c60ca01698cb213faf6e489e469246121'], function(err, msg) { console.log(msg); })