def get_meta_refresh(response):
 if (response not in _metaref_cache):
  text = response.text[0:4096]
  _metaref_cache[response] = html.get_meta_refresh(text, response.url, response.encoding, ignore_tags=('script', 'noscript'))
 return _metaref_cache[response]

def get_meta_refresh ( response ) : if ( response not in _metaref_cache ) : text = response . text [ 0 : 4096 ] _metaref_cache [ response ] = html . get_meta_refresh ( text , response . url , response . encoding , ignore_tags = ( 'script' , 'noscript' ) ) return _metaref_cache [ response ]
parse the http-equiv refrsh parameter from the given response .