This commit is contained in:
Kovid Goyal 2012-01-31 16:42:10 +05:30
parent 4dd05c13b6
commit b1092c7aaa

View File

@ -10,10 +10,10 @@ class HighCountryNews(BasicNewsRecipe):
title = u'High Country News' title = u'High Country News'
description = u'News from the American West' description = u'News from the American West'
__author__ = 'Armin Geller' # 2012-01-28 __author__ = 'Armin Geller' # 2012-01-31
publisher = 'High Country News' publisher = 'High Country News'
timefmt = ' [%a, %d %b %Y]' timefmt = ' [%a, %d %b %Y]'
language = 'en' language = 'en-Us'
encoding = 'UTF-8' encoding = 'UTF-8'
publication_type = 'newspaper' publication_type = 'newspaper'
oldest_article = 7 oldest_article = 7
@ -22,7 +22,13 @@ class HighCountryNews(BasicNewsRecipe):
auto_cleanup = True auto_cleanup = True
remove_javascript = True remove_javascript = True
use_embedded_content = False use_embedded_content = False
masthead_url = 'http://www.hcn.org/logo.jpg' # 2012-01-31 AGe add
cover_source = 'http://www.hcn.org' # 2012-01-31 AGe add
def get_cover_url(self): # 2012-01-31 AGe add
cover_source_soup = self.index_to_soup(self.cover_source)
preview_image_div = cover_source_soup.find(attrs={'class':' portaltype-Plone Site content--hcn template-homepage_view'})
return preview_image_div.div.img['src']
feeds = [ feeds = [
(u'Most recent', u'http://feeds.feedburner.com/hcn/most-recent'), (u'Most recent', u'http://feeds.feedburner.com/hcn/most-recent'),