Get torrent peer list with python

623 views Asked by At

I'm trying to get peer list for specific torrent and I can't use python-libtorrent since it's only for Windows. There's an answer for this question which seems to provide all the code needed to make an anouce request. Yet I always get "Wrong response length while anouncing" or "socket time out". I'm defining payload like this:

    payload = {'info_hash': hash, 'peer_id': 'ABCDABCDABCDABCDABCD',
           'downloaded': '0', 'uploaded': '0',
           'left': '1', 'compact': '0'}

What could be the issue?

0

There are 0 answers