feedgenerator

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

commit e72aee35efede040709e71d4569d68bdafd45373
parent f374ba24c86743ef7e7e2096a859523126867b26
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Sat, 30 Apr 2022 00:41:36 +0200

Fix for Deutschlandfunk topic extraction

Diffstat:
Mfeedgenerator/deutschlandfunk.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/feedgenerator/deutschlandfunk.py b/feedgenerator/deutschlandfunk.py @@ -40,7 +40,7 @@ class DeutschlandfunkFeed: for element in article: if element.name == "header": content += "<p><strong>" + element.findNext("p").text + "</strong></p>" - topic = element.findNext("h2").findNext("span").text + topic = element.findNext("h1").findNext("span").findNext("span").text if element.name == "div": for subelement in element.findNext("section"): if subelement.name == "div":