8 lines
524 B
Python
8 lines
524 B
Python
from urllib.request import urlopen
|
|
import re
|
|
html = urlopen("http://127.0.0.1:5050/").read().decode('utf-8')
|
|
ids_in_html = set(re.findall(r'id="(tab-[^"]+)"', html))
|
|
ids_in_js = ["tab-actual", "tab-dashboard", "tab-portfolio", "tab-backtest", "tab-tail", "tab-dbband", "tab-breakout", "tab-range_break", "tab-momentum", "tab-us_momentum", "tab-optuna", "tab-holding", "tab-updownbox", "tab-updow", "tab-dart", "tab-liveconfig"]
|
|
missing = [i for i in ids_in_js if i not in ids_in_html]
|
|
print("Missing IDs in HTML:", missing)
|