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]))