import requests


def get_url(url):
    """ Get a url, return it's contents. """

    headers = {"User-Agent": "dftools"}
    resp = requests.get(url, headers=headers)
    if resp.status_code == requests.codes.ok:
        return resp.content, resp.status_code
    else:
        return None, resp.status_code