def _get_url_file_name(url):
    path = urlparse(url).path
    try:
        path = unquote(path)
    except (TypeError, ValueError):
        pass
    return Path(path).name
def _get_url_file_name(url):
    path = urlparse(url).path
    try:
        path = unquote(path)
    except (TypeError, ValueError):
        pass
    return Path(path).name