# -*- coding: utf-8 -*-
import io, sys, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
h = open("index_main.html", encoding="utf-8").read()
i = h.find('{id:"cornell-mae-meng"')
j = h.find("],", i) if h.find("],", i) > 0 else h.find("};", i)
seg = h[i:j]
print(seg)
print("\nurl in seg:", 'url:"details/cornell-c7bcf8e.html"' in seg)
