btpeer 0.10.0

Simple CLI tool and library to get peers from TCP/HTTP and UDP BitTorrent trackers
Documentation

btpeer

dependencies crates.io

Simple CLI tool and library to get peers from BitTorrent trackers

Features

Commands:

  • Announce - return interval, leechers and seeders count, optional peers IP:port array
  • Scrape - return leechers, peers, seeders count, info_hash array with stats

Tracker protocols:

  • UDP
  • TCP/HTTP
  • WS

Address family:

  • IPv4
  • IPv6
  • I2P

Install

cargo install btpeer

Usage

Multiple --trackers are supported!

btpeer --help

TCP/HTTP

btpeer announce -t http://[202:68d0:f0d5:b88d:1d1a:555e:2f6b:3148]:6969/announce -i e337a880c4d0f552bab5b437fe1208d26130ccc5

SOCKS/Tor

all_proxy=socks5h://127.0.0.1:9050 \
    btpeer announce -t http://some.onion/announce \
                    -i e337a880c4d0f552bab5b437fe1208d26130ccc5

HTTP/I2P

all_proxy=http://127.0.0.1:4444 \
    btpeer announce -t http://btrackrqkjp6kgelov5a3uxisis77ofxqt5nvy5hvvtoybjpmq4q.b32.i2p/announce \
                    -i e337a880c4d0f552bab5b437fe1208d26130ccc5
  • for HTTP proxy: -P http://127.0.0.1:4444
  • tip: use connection --timeout to increase defaults

UDP

btpeer announce -t [202:68d0:f0d5:b88d:1d1a:555e:2f6b:3148]:6969
                -i e337a880c4d0f552bab5b437fe1208d26130ccc5