Track torrent downloads and save them!!!
torrentMonitor uses libtorrent so first of all you will need to install it.
sudo apt install python3-libtorrent
brew install libtorrent-rasterbar
After install libtorrent with their python binding we will need to install the required dependecies with pip or pipenv.
pip install -r requirements.txt
pipenv install
pipevn shell
usage: torrentMonitor.py [-h] -t TORRENT [-g] [-o OUTPUT] [-ek] [-T TIME]
optional arguments:
-h, --help show this help message and exit
-t TORRENT, --torrent TORRENT
Torrent file or magnet
-g, --geo Enable IP geolocation
-o OUTPUT, --output OUTPUT
Output path
-ek, --elastic Enable elastic saving
-T TIME, --time TIME Sleeping time between downloading peers
Download a torrent file or copy a magnet link and specify it with -t option.
python3 torrentMonitor.py -t AB4DEB4C2B2BE9EBCEB74955B3727BA45060C34B.torrent -o peers
You can geolocate the IPs using -g option of torrentMonitor. In order to use IP geolocation you will need Geolite Country database from maxmind.
- Sign up for a MaxMind account
- Set your password and create a license key
- Setup your download mechanism by using our GeoIP Update program or creating a direct download script
python3 torrentMonitor.py -t AB4DEB4C2B2BE9EBCEB74955B3727BA45060C34B.torrent -o peers -g
Torrent monitor has the possibility of saving the ouput data into elastic with -ek option. You will need to have an elastic cluster running and specify the auth settings inside torrentMonitor.
Just modify the following line with your own hosts data.
es = Elasticsearch(hosts="localhost:9200")