Skip to content

Commit 2bd9441

Browse files
committed
refine subheadline selector
1 parent 5151690 commit 2bd9441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fundus/publishers/pt/the_portugal_news.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class ThePortugalNewsParser(ParserProxy):
1717
class V1(BaseParser):
1818
_paragraph_selector = XPath("//div[@class='article-body']//p[string-length(text())>1]")
19-
_subheadline_selector = XPath("//div[@class='article-body']/p/b")
19+
_subheadline_selector = XPath("//div[@class='article-body']/p/b[not(u)]")
2020
_summary_selector = XPath("//div[@class='fs-4 font-semibold mb-3']")
2121

2222
_author_selector = XPath("//div[@class='col-lg-10 order-lg-1']/p//text()")

0 commit comments

Comments
 (0)