def FetchCachedAlexaPage(domain):
  url_path = 'www.alexa.com/siteinfo/%s' % domain
  cache_path = '%s/%s' % (CACHE_DIR, url_path.replace('/', ','))
  for file in glob.glob("%s,*" % cache_path):
    f = open(file)
    return f.read()
  
  # If we haven't returned already...
  return FetchUrl("http://%s" % url_path)
dataset/ETHPy150Open catap/namebench/tools/alexa-subdomains.py/FetchCachedAlexaPage/original