dhtc
v1.0.1
Published
A BitTorrent DHT crawler library.
Downloads
2
Readme
A BitTorrent DHT crawler for Node.js.
Installation
Requires: Node.js 4.8.2 or greater.
$ npm install dhtc
Features
- Simple API.
- Node.js event emmiter based interface.
- Discover infohashes on the DHT network.
Usage
Note: it make take several minuets for the crawler to find any infohashes.
const Crawler = require('dhtc')
const crawler = new Crawler({
address: '0.0.0.0',
port: 6881
})
crawler.start()
crawler.on('infoHash', (hash, address, port) => {
console.log(`${hash} from ${address}:${port}`)
})