(url, fragments)
return urlunparse(parts)
Parses URL and appends fragments. 

    **Args:**

    * *url:* URL string.
    * *fragments:* Dict of fragments

    *Returns str*
Parses URL and appends fragments.
Parses URL and appends fragments .
def add_fragments(url, fragments):
    """Parses URL and appends fragments. 

    **Args:**

    * *url:* URL string.
    * *fragments:* Dict of fragments

    *Returns str*"""
    parts = list(urlparse(url))
    parts[5] = urlencode(parse_qsl(parts[5]) + fragments.items())
    return urlunparse(parts)
def add_fragments ( url , fragments ) : parts = list ( urlparse ( url ) ) parts [ 5 ] = urlencode ( parse_qsl ( parts [ 5 ] ) + fragments . items ( ) ) return urlunparse ( parts )