I'm currently working on a bittorrent client in Python.
I'm trying to get the Peer Information from the Tracker for the torrent file to download ubuntu.
I've B-decoded the .torrent file and extracted the info dictionary and created a SHA1 hash from it (exactly as specified in the bittorrent protocol wiki).
I'm using python's requests library to send a HTTP Get request, but when I send the request, I get an error back.
This is my Python GET request for the Ubuntu torrent using the tracker_url as specified in the .torrent file
resp = requests.get('http://torrent.ubuntu.com:6969/announce?info_hash=%3F%19%B1I%F5%3AP%E1O%C0%B7%99%26%A3%91%89n%AB%ABo&peer_id=SAoe4hc3u3du0nepwp1h&compact=1&no_peer_id=0&event=started&port=6883&uploaded=0&downloaded=0&left=1178386432')
In response, I get a Response 200, and the resp.content is
b'd14:failure reason63:Requested download is not authorized for use with this tracker.e'
I'm wondering if someone could tell me what's wrong with my request? Thank you very much!