From 37669e395c54121ec89c99c3a6c89140bd0b60be Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 19 Jan 2022 15:04:48 +0000 Subject: [PATCH] Remove a on Gravesong --- gravesong.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gravesong.py b/gravesong.py index ffbb190..8ff04a0 100644 --- a/gravesong.py +++ b/gravesong.py @@ -17,10 +17,10 @@ def process(metadata, output_dir): html = bs4.BeautifulSoup(response.content, "html.parser") entry_content = html.select_one("div.entry-content") - content_imgs = entry_content.find_all("img") + content_as = entry_content.find_all("a") - for content_img in content_imgs: - content_img.decompose() + for content_a in content_as: + content_a.decompose() chapter_title = "Introduction" chapter_content = ""