I need a PHP script that can scrape Seeders, Leechers and info on those peers from a given tracker. During research, I have found some scripts which were able to do this properly for http trackers, but this script must support both http trackers and udp trackers and also return info on the peers.
Given input to script should be:
- tracker URL (http or udp)
- torrent hash
The script should return Seeders, Leechers and available info on those peers (ip address, port, peer id, etc).
It doesn't have to be completely written in PHP. The PHP script can act as a frontend and interface some external software (Transmission, rTorrent, libtorrent, etc.) to gather this information. It must work on Linux/Ubuntu.