import re, os
base = os.path.dirname(os.path.abspath(__file__))
html = open(os.path.join(base, "index_main.html"), encoding="utf-8").read()
i = html.find('{id:"usc-me-em-dual"')
j = html.find('{id:"', i + 10)
block = html[i:j]
print("块长:", len(block))
print("块尾 120 字符:", repr(block[-120:]))
m = re.search(r'url:"([^"]*)"', block)
print("url:", m.group(1) if m else None)
print("块尾是否以 }, 结束:", block.rstrip().endswith("},"))
