Skip to content

Commit

Permalink
update _paragraph_selector
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDall committed Feb 1, 2024
1 parent 909395d commit 70fb945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fundus/publishers/de/dw.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DWParser(ParserProxy):
class V2(BaseParser):
VALID_UNTIL = datetime.date(2024, 1, 18)

_paragraph_selector = CSSSelector("div.rich-text > p")
_paragraph_selector = XPath("//div[contains(@class, 'rich-text')] /p[not(em) or text()]")
_summary_selector = CSSSelector("header > p")
_subheadline_selector = CSSSelector("div.rich-text > h2")

Expand Down

0 comments on commit 70fb945

Please sign in to comment.