# -*- coding: utf-8 -*-
import re,io,sys
sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding="utf-8")
def load(f):
    t=open(f,encoding="utf-8").read()
    t=re.sub(r"<script.*?</script>","",t,flags=re.S); t=re.sub(r"<style.*?</style>","",t,flags=re.S)
    t=re.sub(r"<[^>]+>"," ",t); return re.sub(r"\s+"," ",t).strip()
req=load("_duke_mems_pratt-req.html")
print("LEN",len(req))
for seg in [(10500,15000),(17500,22000),(22000,27000),(33000,35000)]:
    print("======",seg); print(req[seg[0]:seg[1]]); print()
