def get_request(url, headers={}):
    """
        Make a HTTP GET request to a url
    """

    MAX_TRIES_ALLOWED = current.MAX_TRIES_ALLOWED
    i = 0

    while i < MAX_TRIES_ALLOWED:
        try:
            response = requests.get(url,
                                    headers=headers,
                                    proxies=current.PROXY,
                                    timeout=current.TIMEOUT)
        except __HOLE__:
            return -1
        except:
            return {}

        if response.status_code == 200:
            return response
        i += 1

    if response.status_code == 404 or response.status_code == 400:
        return {}

    return -1
dataset/ETHPy150Open stopstalk/stopstalk-deployment/modules/sites/init.py/get_request