def METHOD_NAME(url, as_json=True, retries=5):
    try:
        req = requests.get(url)
        if as_json:
            return req.json()
        return req.text
    except Exception as e:
        if retries > 0:
            time.sleep((6-retries)*5)
            return METHOD_NAME(url, as_json=as_json, retries=retries-1)
        raise(e)