def item_is_interesting_for_headlines(
self, title: str, description: str, item: xml.etree.ElementTree.Element
) -> bool:
- return not self.is_item_older_than_n_days(item, 2)
+ return (
+ not self.is_item_older_than_n_days(item, 2)
+ and title != "Google News"
+ and description != "Google News"
+ )
def item_is_interesting_for_article(
self, title: str, description: str, item: xml.etree.ElementTree.Element
) -> bool:
- return not self.is_item_older_than_n_days(item, 2)
+ return (
+ not self.is_item_older_than_n_days(item, 2)
+ and title != "Google News"
+ and description != "Google News"
+ )
# Test