def _get_templated_url(self, template, id, method=None):
        id = re.sub('^http(s?)://', '', id)
        try:
            id = urllib.quote(id, safe="")
        except __HOLE__:  # thrown if bad characters
            pass
        url = template % id
        return(url)
dataset/ETHPy150Open Impactstory/total-impact-core/totalimpact/providers/plossearch.py/Plossearch._get_templated_url