Question

I am implementing a distributed p2p based model in python using python-bittorent library. So, basically i want the peer info/list from a torrent.

from bittorrent import Tracker, Torrent
import torrent
import tracker


f=open("0F605C725275D1045361A17B0222B57232EE77BD.torrent","r+")

tor=Torrent(f.name)
tor.get_peers(peer_list)

So, I'm wondering what should be the possible way I enter data in peer_list. I mean how am i supposed to enter data like 172.16.44.207:22592, 115.187.33.86:22592, in the form of a list.

Kindly suggest.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top