- def item_is_interesting_for_headlines(self, title, description, item):
- return ("WSJ.com" not in title and
- "WSJ.com" not in description)
+ def item_is_interesting_for_headlines(
+ self, title: str, description: str, item: xml.etree.ElementTree.Element
+ ) -> bool:
+ if self.is_item_older_than_n_days(item, 7):
+ return False
+ return "WSJ.com" not in title and "WSJ.com" not in description
+
+ def item_is_interesting_for_article(
+ self, title: str, description: str, item: xml.etree.ElementTree.Element
+ ) -> bool:
+ if self.is_item_older_than_n_days(item, 7):
+ return False
+ return "WSJ.com" not in title and "WSJ.com" not in description