import io, os, re, requests
ids = ['gatech-ece-phd', 'gatech-me-phd', 'gatech-msbinf', 'gatech-mbid',
       'gatech-msbcfm', 'gatech-mseem', 'gatech-chbe-phd']
paths = {
 'gatech-ece-phd': 'details/gatech-ece-phd.html',
 'gatech-me-phd': 'details/gatech-me-phd.html',
 'gatech-msbinf': 'details/gatech-msbinf.html',
 'gatech-mbid': 'details/gatech-mbid.html',
 'gatech-msbcfm': 'details/gatech-building-construction-and-facility-management-ms.html',
 'gatech-mseem': 'details/gatech-sustainable-energy-and-environmental-management-ms.html',
 'gatech-chbe-phd': 'details/gatech-chbe-phd.html',
}
for i in ids:
    t = io.open(paths[i], encoding='utf-8').read()
    bad = [w for w in ('编辑整理', '待补', 'TBD') if w in t]
    print(i, os.path.getsize(paths[i]), 'bad=', bad)
    r = requests.get('http://127.0.0.1:8000/' + paths[i], timeout=8)
    print('   http', r.status_code, len(r.content))
