This data can be used to construct swarm graph, discover peer geolocation, etc...
The details about the PEX application layer messagens can be found in http://www.ufjf.br/pgcc/files/2014/06/ThiagoGuarnieri.pdf sudo apt-get install python-libtorrent
sudo apt-get install python-pip
pip install geoip2
Free geolite databases at https://dev.maxmind.com/geoip/geoip2/geolite2/
python crawler.py crawler.py|--- database (geolite files)
|--- downloaded (downloaded torrent chunks)
|--- logs (data from the swarm)
|--- torrent (torrent files)