def request_provider_item(provider, nid, section):
    base_url = 'http://localhost:5001/'
    nid = urlparse.unquote(nid)
    url = base_url + urllib.quote('provider/%s/%s/%s' % (provider, section, nid))
    if options.debug:
        print "\n", url
    req = urllib2.Request(url)
    try:
        response = urllib2.urlopen(req)
        result = json.loads(response.read())
    except urllib2.HTTPError:
        if options.debug:
            print("HTTPError on %s %s %s, perhaps not implemented" + (provider, section, nid))
        result = {}
    if options.debug:
        print result

    return result
dataset/ETHPy150Open Impactstory/total-impact-core/extras/functional_tests/alt_functional_test.py/request_provider_item/operator `%` -> `+`