def parse_query_param(url, param):
try:<EOL><INDENT>return parse.parse_qs(parse.urlparse(url).query)[param][<NUM_LIT:0>]<EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT>
Parses the query string of a URL and returns the value of a parameter.

    Args:
        url: A URL.
        param: A string representing the name of the parameter.

    Returns:
        The value of the parameter.