import re, html, glob
for f in ['kpi_das.html', 'kpi_studiosoft.html', 'kpi_ssc.html']:
    p = '/home/mantapman/.hermes/profiles/atun/workspace/drafts/kpi/' + f
    s = open(p).read()
    txt = re.sub(r'<style.*?</style>', ' ', s, flags=re.S)
    txt = re.sub(r'<[^>]+>', '\n', txt)
    lines = [html.unescape(l).strip() for l in txt.split('\n')]
    lines = [l for l in lines if l]
    print('=====', f)
    print(' | '.join(lines[:70]))
    print()
