From 2700e0302d1081d7c92c94b9de35570bce615aa0 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 19 Jan 2022 14:26:07 +0000 Subject: [PATCH] Remove all images sadly --- twi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twi.py b/twi.py index adcfe8a..620fd44 100644 --- a/twi.py +++ b/twi.py @@ -16,12 +16,15 @@ def fetchVolume(title, metadata, volume_title, output_dir, links): a_remove = chapter_content.find_all("a") hr_remove = chapter_content.find_all("hr") + img_remove = chapter_content.find_all("img") div_remove = chapter_content.select("div.tiled-gallery") for removed in a_remove: removed.decompose() for removed in hr_remove: removed.decompose() + for removed in img_remove: + removed.decompose() for removed in div_remove: removed.decompose()