Skip to content

Commit

Permalink
update bi paragraph/subheadline selector
Browse files Browse the repository at this point in the history
  • Loading branch information
addie9800 committed Apr 19, 2024
1 parent bab5b3d commit 9e6868e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fundus/publishers/us/business_insider.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class BusinessInsiderParser(ParserProxy):
class V1(BaseParser):
_summary_selector = CSSSelector("article ul[class^='summary-list'] > li")
_subheadline_selector = CSSSelector("article h2")
_subheadline_selector = CSSSelector("article h2, div.slideshow-slide-container h2")
_paragraph_selector = XPath(
"""
//article
Expand All @@ -25,6 +25,8 @@ class V1(BaseParser):
//article
//div[contains(@class, 'content-lock-content')]
/div[contains(@class, 'premium-content')]
/p[not(contains(@class, 'disclaimer'))] |
//div[@class='slide-layout clearfix']
/p[not(contains(@class, 'disclaimer'))]
"""
)
Expand Down

0 comments on commit 9e6868e

Please sign in to comment.