def get_url_and_time(line):
    """Extracts time and url from line of log file"""
    try:
        list_of_values = line.split(' ')
        url = list_of_values[7].strip()
        time = float(list_of_values[-1].strip())
    except Exception:
        return None, None

    return url, time