1 import generic_news_rss_renderer
3 class wsj_rss_renderer(generic_news_rss_renderer.generic_news_rss_renderer):
4 def __init__(self, name_to_timeout_dict, feed_site, feed_uris, page_title):
5 super(wsj_rss_renderer, self).__init__(
12 def debug_prefix(self):
13 return "wsj(%s)" % (self.page_title)
15 def get_headlines_page_prefix(self):
16 return "wsj-%s" % (self.page_title)
18 def get_details_page_prefix(self):
19 return "wsj-details-%s" % (self.page_title)
21 def should_use_https(self):
24 def item_is_interesting_for_headlines(self, title, description, item):
25 return ("WSJ.com" not in title and
26 "WSJ.com" not in description)
28 def item_is_interesting_for_article(self, title, description, item):
29 return ("WSJ.com" not in title and
30 "WSJ.com" not in description)
33 #x = wsj_rss_renderer(
35 # "Shuffle News" : 1},
37 # [ "/rss/RSSWorldNews.xml" ],
39 #if x.fetch_news() == 0:
40 # print "Error fetching news, no items fetched."