douyinWEB/scripts/_snip_cn_youtube_js.py
eric d409e416da Ship physical dual-edge stack, Studio CDP live metrics, and ops tooling.
Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 22:42:40 -05:00

11 lines
530 B
Python

# -*- coding: utf-8 -*-
import re, sys, httpx
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
url = "https://dy.nomadro.cn/_next/static/chunks/app/youtube/page-7a6c91c3bf577da9.js"
body = httpx.get(url, timeout=40).text
for n in ["选择已授权频道", "listbox", "aria-haspopup", "ChevronDown", "role:\"listbox\"", 'role:"listbox"', "option value", "<select", "native"]:
print(n, n in body)
# show context around 选择已授权
i = body.find("选择已授权频道")
print("context:", body[max(0,i-120):i+200])