import logging
from typing import List, Dict
+import xml.etree.ElementTree as ET
+
import generic_news_rss_renderer as gnrss
logger = logging.getLogger(__name__)
+DBN = "Downtown Bellevue Network"
+
+
class downtown_bellevue_rss_renderer(gnrss.generic_news_rss_renderer):
"""Read the Bellevue Reporter's RSS feed."""
def should_use_https(self) -> bool:
return True
+ def item_is_interesting_for_headlines(
+ self, title: str, description: str, item: ET.Element
+ ) -> bool:
+ return title != DBN
+
+ def item_is_interesting_for_article(
+ self, title: str, description: str, item: ET.Element
+ ) -> bool:
+ return title != DBN and description != DBN
+
# Test
# x = downtown_bellevue_rss_renderer(