def _get_templated_url(self, template, input_url, method=None):
        url = None
        try:
            if method=="members":
                match = re.match("^https://publons.com/author/(\d+)/.+", input_url)
                user_id = match.group(1)
                url = template % user_id
            else:
                match = re.match("^https://publons.com/r.*/(\d+).*", input_url)
                review_id = match.group(1)
                url = template % review_id
        except __HOLE__:
            pass

        return(url)
dataset/ETHPy150Open Impactstory/total-impact-core/totalimpact/providers/publons.py/Publons._get_templated_url