A BitTorrent DHT crawler for Node.js.
Requires: Node.js 6.4.0 or greater.
$ npm install dhtc
- Simple API.
- Node.js event emmiter based interface.
- Discover infohashes on the DHT network.
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}`)
})