From a18519bf16f2983b139cffaa731d3ea8e900f542 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 11 Jan 2024 18:40:11 -0800 Subject: [PATCH] =?utf8?q?Rename=20html=20=E2=86=92=20dom?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- glowfic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glowfic.py b/glowfic.py index 372b3aa..746a7a2 100644 --- a/glowfic.py +++ b/glowfic.py @@ -56,19 +56,19 @@ class Chunk: class Thread: - def __init__(self, html: BeautifulSoup) -> None: - self._html = html + def __init__(self, dom: BeautifulSoup) -> None: + self._dom = dom def chunkDOMs(self) -> Iterable[Tag]: def text() -> Tag: - body = self._html.body + body = self._dom.body assert body text = body.find_next("div", class_="post-post") assert isinstance(text, Tag) return text def the_replies() -> Iterable[Tag]: - rs = self._html.find_all("div", class_="post-reply") + rs = self._dom.find_all("div", class_="post-reply") assert all(isinstance(r, Tag) for r in rs) return rs -- 2.44.1