Skip to content

Commit

Permalink
update subheadline selector
Browse files Browse the repository at this point in the history
  • Loading branch information
addie9800 committed Dec 21, 2024
1 parent 2cd53ff commit 2eef393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fundus/publishers/uk/the_bbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class TheBBCParser(ParserProxy):
class V1(BaseParser):
_subheadline_selector = XPath(
"//div[@data-component='subheadline-block' or contains(@class, 'ebmt73l0')]//*[self::h2 or (self::p and b and position()>1)]"
"//div[@data-component='subheadline-block' or @data-component='text-block' or contains(@class, 'ebmt73l0')]//*[self::h2 or (self::p and b and position()>1)]"
)
_summary_selector = XPath(
"(//div[@data-component='text-block' or contains(@class, 'ebmt73l0')])[1] //p[b and position()=1]"
Expand Down

0 comments on commit 2eef393

Please sign in to comment.