Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/supported_publishers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2736,7 +2736,9 @@
<td>
<code>topics</code>
</td>
<td>&#160;</td>
<td>
<code>authors</code>
</td>
<td>&#160;</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/fundus/publishers/pt/the_portugal_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def publishing_date(self) -> Optional[datetime.datetime]:
def title(self) -> Optional[str]:
return self.precomputed.ld.bf_search("headline")

@attribute
@attribute(deprecated=datetime.date(2025, 10, 21))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it needs to be deprecated, just updated. Some article types, such as opinion pieces still have parsable, non-generic authors. e.g. 1, 2

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, maybe we need a now category for attributes that rarely occurre? Otherwise this will fail the publisher coverage all the time.

def authors(self) -> List[str]:
author_objects = self._author_selector(self.precomputed.doc)
if author_objects and (author := re.search(r"(?i)by\s*(?P<authors>.*),[\r\sr\n]*in", author_objects[0])):
Expand Down