def METHOD_NAME(self):
    url = urlparse.urljoin(self.base_url, 'token.html')
    response = self.opener.open(url)
    token_re = "<div id='token' style='display:none;'>([^<>]+)</div>"
    match = re.search(token_re, response.read())
    return match.group(1)