(url, timeout=None, _json=False)
Get data from a URL.
Get data from a URL.
Get data from a URL .
def get_url_contents(url, timeout=None, _json=False):
    """Get data from a URL."""
    request = send_request(url, timeout=timeout)
    if request is not None:
        return (bytes, json.loads)[_json](request.read())
def get_url_contents ( url , timeout = None , _json = False ) : request = send_request ( url , timeout = timeout ) if request is not None : return ( bytes , json . loads ) [ _json ] ( request . read ( ) )