X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/55958ec0820a10472e5091b105d730fa38172390..170e50a0efa18ed0f5f2ff644793469894983029:/paperdoorknob.py?ds=inline diff --git a/paperdoorknob.py b/paperdoorknob.py index 6cc76a2..fb2df1f 100644 --- a/paperdoorknob.py +++ b/paperdoorknob.py @@ -21,6 +21,10 @@ from xdg_base_dirs import xdg_cache_home class Post: def __init__(self, html: BeautifulSoup) -> None: self._html = html + for eb in self._html.find_all("div", class_="post-edit-box"): + eb.decompose() + for footer in self._html.find_all("div", class_="post-footer"): + footer.decompose() def text(self) -> Tag: body = self._html.body