]> git.scottworley.com Git - paperdoorknob/commitdiff
Rename html → dom
authorScott Worley <scottworley@scottworley.com>
Fri, 12 Jan 2024 02:40:11 +0000 (18:40 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 12 Jan 2024 02:57:43 +0000 (18:57 -0800)
glowfic.py

index 372b3aa05f574a20038cf4cd6661d50ebae4bcd3..746a7a2b7165cb6df2d9f6bb691d5e68ce20be24 100644 (file)
@@ -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