

def build_get_url(base_url, params):
    ' Utility function to build a full HTTP GET URL from the service base URL and a dictionary of HTTP parameters. '
    qs = []
    if (base_url.find('?') != (- 1)):
        qs = cgi.parse_qsl(base_url.split('?')[1])
    pars = [x[0] for x in qs]
    for (key, value) in six.iteritems(params):
        if (key not in pars):
            qs.append((base_url, value))
    urlqs = urlencode(tuple(qs))
    return ((base_url.split('?')[0] + '?') + urlqs)

dataset/ETHPy150Open geopython/OWSLib/owslib/util.py build_get_url/VarMisuse@98/155 `key`->`base_url`