import requests


def get_true_url(url):
    """
    Gets true url of file, which is redirected destination.
    """
    response = requests.head(url)
    true_url = response.headers['Location'] # Detects redirection and get destination's url

    return true_url