import json import urllib.request html = urllib.request.urlopen("https://admin.nomadro.cn/").read().decode("utf-8", "replace") print("html has DaTXLZ96", "DaTXLZ96" in html) req = urllib.request.Request( "https://api.nomadro.cn/api/admin/login", data=json.dumps({"username": "admin", "password": "Xiao4669805"}).encode(), headers={"Content-Type": "application/json"}, ) tok = json.loads(urllib.request.urlopen(req).read())["token"] req2 = urllib.request.Request( "https://api.nomadro.cn/api/admin/product-offers", headers={"Authorization": f"Bearer {tok}"}, ) items = json.loads(urllib.request.urlopen(req2).read())["items"] print("offers", [(i["key"], i["product_id"], i["price_fen"]) for i in items]) js = urllib.request.urlopen("https://admin.nomadro.cn/assets/index-DaTXLZ96.js").read().decode( "utf-8", "replace" ) print("live monetize-panel", "monetize-panel" in js) print("live product-offers", "product-offers" in js) print("live old unlock label present", "试读解锁百分比" in js)