Given a URL (ex: "http://www.test.com/path?query=3") and a parameter
    (ex: "query"), return the value as a list
    :param url: a `str` URL
    :param parameter: the URL query we went to extract
    :return: a `list` of values for the given query name in the given URL or
        an empty string if the query is not in the URL

def extract_url_query_parameter(url, parameter):
    """Given a URL (ex: "http://www.test.com/path?query=3") and a parameter
    (ex: "query"), return the value as a list
    :param url: a `str` URL
    :param parameter: the URL query we went to extract
    :return: a `list` of values for the given query name in the given URL or
        an empty string if the query is not in the URL
    """
    query_string = urlparse(url).query
    return parse_qs(query_string).get(parameter, [])