This commit is contained in:
Kovid Goyal 2011-03-02 13:49:35 -07:00
parent f236428696
commit 29ba47485d

View File

@ -1,8 +1,8 @@
__license__ = 'GPL v3' __license__ = 'GPL v3'
__author__ = 'Todd Chapman' __author__ = 'Todd Chapman'
__copyright__ = 'Todd Chapman' __copyright__ = 'Todd Chapman'
__version__ = 'v0.1' __version__ = 'v0.2'
__date__ = '26 February 2011' __date__ = '2 March 2011'
''' '''
http://www.buffalonews.com/RSS/ http://www.buffalonews.com/RSS/
@ -12,12 +12,16 @@ from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1298680852(BasicNewsRecipe): class AdvancedUserRecipe1298680852(BasicNewsRecipe):
title = u'Buffalo News' title = u'Buffalo News'
__author__ = 'ChappyOnIce'
language = 'en'
oldest_article = 2 oldest_article = 2
language = 'en'
__author__ = 'ChappyOnIce'
max_articles_per_feed = 20 max_articles_per_feed = 20
encoding = 'utf-8' encoding = 'utf-8'
masthead_url = 'http://www.buffalonews.com/buffalonews/skins/buffalonews/images/masthead/the_buffalo_news_logo.png'
remove_javascript = True remove_javascript = True
extra_css = 'body {text-align: justify;}\n \
p {text-indent: 20px;}'
keep_only_tags = [ keep_only_tags = [
dict(name='div', attrs={'class':['main-content-left']}) dict(name='div', attrs={'class':['main-content-left']})
] ]
@ -28,9 +32,7 @@ class AdvancedUserRecipe1298680852(BasicNewsRecipe):
] ]
remove_tags_after = dict(name='div', attrs={'class':['body storyContent']}) remove_tags_after = dict(name='div', attrs={'class':['body storyContent']})
conversion_options = {
'base_font_size' : 14,
}
feeds = [(u'City of Buffalo', u'http://www.buffalonews.com/city/communities/buffalo/?widget=rssfeed&view=feed&contentId=77944'), feeds = [(u'City of Buffalo', u'http://www.buffalonews.com/city/communities/buffalo/?widget=rssfeed&view=feed&contentId=77944'),
(u'Southern Erie County', u'http://www.buffalonews.com/city/communities/southern-erie/?widget=rssfeed&view=feed&contentId=77944'), (u'Southern Erie County', u'http://www.buffalonews.com/city/communities/southern-erie/?widget=rssfeed&view=feed&contentId=77944'),
(u'Eastern Erie County', u'http://www.buffalonews.com/city/communities/eastern-erie/?widget=rssfeed&view=feed&contentId=77944'), (u'Eastern Erie County', u'http://www.buffalonews.com/city/communities/eastern-erie/?widget=rssfeed&view=feed&contentId=77944'),