torrent-tracker-ce
v0.0.9
Published
Library to query both UDP and HTTP trackers
Downloads
7
Maintainers
Readme
torrent-tracker-ce
What is it?
torrent-tracker-ce 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.
Is this a fork of node-tracker?
Yes. XeonCore is nowhere to be found and node-tracker is no longer maintained.
How to use it?
A really simple example:
var Tracker = require('torrent-tracker-ce')
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); })