nomadweb/scripts/check_book_html2.py
eric ff7b721acb feat: NomadCNA community layer, social matching, payments, and ebook
Port meetups, discussions, gigs, dating/chat, VIP pay (ZPay/XorPay), MiroTalk live, digital academy, and ebook reader. Add persistent community_store, git-first deploy docs, and env template for production secrets.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 09:38:13 -05:00

18 lines
628 B
Python

import urllib.request
html = urllib.request.urlopen(
urllib.request.Request(
"https://nomadweb.nomadro.com/book",
headers={"Cache-Control": "no-cache", "Pragma": "no-cache"},
),
timeout=30,
).read().decode("utf-8", "replace")
print("is-visible", "is-visible" in html)
print("ebook-site-brand", "ebook-site-brand" in html)
print("viral-cover-content", "viral-cover-content" in html)
# count scroll-reveal
print("scroll-reveal count", html.count("scroll-reveal"))
print("is-visible count", html.count("is-visible"))
# extract bar text roughly
i = html.find("ebook-site-bar")
print(repr(html[i:i+400]))