from argparse import ArgumentParser
import os.path
+
+from typing import Iterable
+
from bs4 import BeautifulSoup
from bs4.element import Tag
import requests
assert isinstance(text, Tag)
return text
+ def replies(self) -> Iterable[Tag]:
+ replies = self._html.find_all("div", class_="post-reply")
+ assert all(isinstance(r, Tag) for r in replies)
+ return replies
+
def command_line_parser() -> ArgumentParser:
parser = ArgumentParser(prog='paperdoorknob', description='Print glowfic')