mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
4dd05c13b6
commit
b1092c7aaa
@ -8,21 +8,27 @@ Fetch High Country News
|
|||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
class HighCountryNews(BasicNewsRecipe):
|
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
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
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'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user