diff --git a/src/fundus/publishers/de/__init__.py b/src/fundus/publishers/de/__init__.py index 3e50b86e4..eba571fc5 100644 --- a/src/fundus/publishers/de/__init__.py +++ b/src/fundus/publishers/de/__init__.py @@ -232,6 +232,10 @@ class DE(PublisherEnum): RheinischePost = PublisherSpec( name="Rheinische Post", domain="https://rp-online.de/", - sources=[NewsMap("https://rp-online.de/sitemap-news.xml"), Sitemap("https://rp-online.de/sitemap.xml")], + sources=[ + RSSFeed("https://rp-online.de/feed.rss"), + NewsMap("https://rp-online.de/sitemap-news.xml"), + Sitemap("https://rp-online.de/sitemap.xml"), + ], parser=RheinischePostParser, ) diff --git a/src/fundus/publishers/de/rheinische_post.py b/src/fundus/publishers/de/rheinische_post.py index ec2a2615d..3e7b741d4 100644 --- a/src/fundus/publishers/de/rheinische_post.py +++ b/src/fundus/publishers/de/rheinische_post.py @@ -16,6 +16,7 @@ class RheinischePostParser(ParserProxy): class V1(BaseParser): _summary_selector = CSSSelector("strong[data-cy='intro']") _paragraph_selector = CSSSelector("div[data-cy='article-content'] p") + _subheadline_selector = CSSSelector("div[data-cy='article-content'] h2") @attribute def body(self) -> ArticleBody: @@ -23,6 +24,7 @@ def body(self) -> ArticleBody: self.precomputed.doc, summary_selector=self._summary_selector, paragraph_selector=self._paragraph_selector, + subheadline_selector=self._subheadline_selector, ) @attribute