import requests


def resolve_shortener(url):
    """Gets the real url from the url-shortener service.

    Parameters
    ----------    
    url : str
        A shortened url.

    Returns
    -------
    str
        The real url.

    """

    with requests.head(url) as response:
        return response.headers["location"]