feedgenerator

A simple tool to create various feeds
git clone https://git.ortlepp.eu/feedgenerator.git/
Log | Files | Refs | README | LICENSE

commit 06ca39a4abc3eb851da0fac8bf017077b814da88
parent 5d4015219478285e9d6a24ab360aa4d756b6772f
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Thu, 16 Dec 2021 21:35:29 +0100

Added new content filters for Antenne Muenster

Diffstat:
Mantenne_muenster.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/antenne_muenster.py b/antenne_muenster.py @@ -63,7 +63,10 @@ class AntenneMuensterFeed(): added = 0 for element in content: - if element.name == "script" or str(element).startswith("<div class=\"section\">"): + if element.name == "script" or element.name == "h4": + continue + + if str(element).startswith("<div class=\"section\">") or str(element).startswith("<div class=\"row carousel-slider"): continue if element.name == "h3":