import requests
import json


class Peers:

    def getPeers(tracker_ip, info_hash, ip, port, event, peer_id):
        payload = {'info_hash': info_hash, 'ip': ip, 'port': port, 'event':
            event, 'peer_id': peer_id}
        answer = requests.get(tracker_ip, params=payload)
        return answer.json()

a7475769a92bf7f669dd804632569fcb122df926
<mask token>

<mask token>


class Peers:
    <mask token>

<mask token>


class Peers:

    def getPeers(tracker_ip, info_hash, ip, port, event, peer_id):
        payload = {'info_hash': info_hash, 'ip': ip, 'port': port, 'event':
            event, 'peer_id': peer_id}
        answer = requests.get(tracker_ip, params=payload)
        return answer.json()

import requests
import json


class Peers:

    def getPeers(tracker_ip, info_hash, ip, port, event, peer_id):
        payload = {'info_hash': info_hash, 'ip': ip, 'port': port, 'event':
            event, 'peer_id': peer_id}
        answer = requests.get(tracker_ip, params=payload)
        return answer.json()
