This commit is contained in:
Kovid Goyal 2012-04-27 21:48:54 +05:30
parent 0226d58448
commit 7e00bcd456

View File

@ -1,58 +1,59 @@
import re from calibre.web.feeds.recipes import BasicNewsRecipe
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1335532466(BasicNewsRecipe):
class AdvancedUserRecipe1308591763(BasicNewsRecipe): title = u'Richmond Times-Dispatch'
title = u'Richmond Times-Dispatch' description = 'News from Richmond, Virginia, USA'
description = 'News from Richmond, Virginia' __author__ = 'jde'
cover_url = 'http://static2.dukecms.com/va_tn/timesdispatch_com/site-media/img/icons/logo252x97.png'
language = 'en' language = 'en'
__author__ = 'jde' encoding = 'utf8'
oldest_article = 3 #days oldest_article = 1 #days
max_articles_per_feed = 25 max_articles_per_feed = 25
summary_length = 150 needs_subscription = False
no_stylesheets = True remove_javascript = True
remove_javascript = True recursions = 0
use_embedded_content = False use_embedded_content = False
encoding = 'utf8' no_stylesheets = True
publisher = 'Richmond Times-Dispatch' auto_cleanup = True
category = 'news, Virginia, world'
publication_type = 'newsportal' feeds = [
extra_css = ' body{ font-family: Verdana,Helvetica,Arial,sans-serif } .introduction{font-weight: bold} .story-feature{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} '
preprocess_regexps = [(re.compile(r'<!--.*?-->', re.DOTALL), lambda m: '')] ('News',
conversion_options = { 'http://www2.timesdispatch.com/list/feed/rss/news-archive'),
'comments' : description ('Breaking News',
,'tags' : category 'http://www2.timesdispatch.com/list/feed/rss/breaking-news'),
,'language' : language ('National News',
,'publisher' : publisher 'http://www2.timesdispatch.com/list/feed/rss/national-news'),
,'linearize_tables': True ('Local News',
} 'http://www2.timesdispatch.com/list/feed/rss/local-news'),
('Business',
remove_attributes = ['width','height'] 'http://www2.timesdispatch.com/list/feed/rss/business'),
remove_tags_before = dict(name='h1', attrs={'id':'story_headline'}) ('Local Business',
remove_tags_after = dict(name='class', attrs={'id':'content_fbrecommend'}) 'http://www2.timesdispatch.com/list/feed/rss/local-business'),
('Politics',
remove_tags = [ 'http://www2.timesdispatch.com/list/feed/rss/politics'),
dict(name='iframe'), ('Virginia Politics',
dict(name='div', attrs={'id':['topslider', 'top_links', 'top_links_center', 'top_links_right', 'mast', 'mainnav', 'search', 'searchbar_box', 'dateline', 'breadcrumb']}), 'http://www2.timesdispatch.com/list/feed/rss/virginia-politics'),
dict(name='div', attrs={'id':['sectionheader', 'comments_list', 'comment_form', 'sr_b', 'mg_ft', 'bottomad', 'mgproperties', 'copyright', 'bottomnow']}), ('Editorials',
dict(name='div', attrs={'id':['comments_left']}), 'http://www2.timesdispatch.com/list/feed/rss/editorial-desk'),
dict(name='div', attrs={'class':['related_content', 'article_comments', 'article_foot', 'content_fbrecommend']}), ('Columnists and Blogs',
dict(name='div', attrs={'class':['bottom_social addthis_toolbox', 'featurebox', 'article_bottom']}), 'http://www2.timesdispatch.com/list/feed/rss/news-columnists-blogs'),
dict(name='ul', attrs={'class':['jd_menu']}) ('Opinion Columnists',
] 'http://www2.timesdispatch.com/list/feed/rss/opinion-editorial-columnists'),
('Letters to the Editor',
feeds = [ 'http://www2.timesdispatch.com/list/feed/rss/opinion-letters'),
(u'News', u'http://www2.timesdispatch.com/list/feed/rss/news-archive/'), ('Traffic',
(u'Breaking News', u'http://www2.timesdispatch.com/list/feed/rss/breaking-news/'), 'http://www2.timesdispatch.com/list/feed/rss/traffic'),
(u'National News', u'http://www2.timesdispatch.com/list/feed/rss/national-news/'), ('Sports',
(u'Local News', u'http://www2.timesdispatch.com/list/feed/rss/local-news/'), 'http://www2.timesdispatch.com/list/feed/rss/sports2'),
(u'Business', u'http://www2.timesdispatch.com/list/feed/rss/business/'), ('Entertainment/Life',
(u'Local Business', u'http://www2.timesdispatch.com/list/feed/rss/local-business/'), 'http://www2.timesdispatch.com/list/feed/rss/entertainment'),
(u'Politics', u'http://www2.timesdispatch.com/list/feed/rss/politics/'), ('Movies',
(u'Virginia Politics', u'http://www2.timesdispatch.com/list/feed/rss/virginia-politics/'), 'http://www2.timesdispatch.com/list/feed/rss/movies'),
(u'Editorials', u'http://www2.timesdispatch.com/list/feed/rss/editorial-desk/'), ('Music',
(u'Columnists and Blogs', u'http://www2.timesdispatch.com/list/feed/rss/news-columnists-blogs//'), 'http://www2.timesdispatch.com/list/feed/rss/music'),
(u'Opinion Columnists', u'http://www2.timesdispatch.com/list/feed/rss/opinion-editorial-columnists/'), ('Dining & Food',
(u'Letters to the Editor', u'http://www2.timesdispatch.com/list/feed/rss/opinion-letters/'), 'http://www2.timesdispatch.com/list/feed/rss/dining'),
(u'Traffic', u'http://www2.timesdispatch.com/list/feed/rss/traffic/'),
] ]