def check_anchor(response, anchor):
 parser = AnchorCheckParser(anchor)
 try:
  for chunk in response.iter_content(chunk_size=4096, decode_unicode=True):
   parser.feed(chunk)
   if parser.found:
    break
  parser.close()
 except HTMLParseError:
  pass
 return parser.found

def check_anchor ( response , anchor ) : parser = AnchorCheckParser ( anchor ) try : for chunk in response . iter_content ( chunk_size = 4096 , decode_unicode = True ) : parser . feed ( chunk ) if parser . found : break parser . close ( ) except HTMLParseError : pass return parser . found
reads html data from a filelike object f searching for anchor hash .