Update Reader's Digest

This commit is contained in:
Kovid Goyal 2015-12-31 09:59:01 +05:30
commit b1f467e6cf

View File

@ -2,13 +2,15 @@
__license__ = 'GPL v3' __license__ = 'GPL v3'
''' '''
''' '''
import re
from calibre.web.feeds.recipes import BasicNewsRecipe from calibre.web.feeds.recipes import BasicNewsRecipe
class ReadersDigest(BasicNewsRecipe): class ReadersDigest(BasicNewsRecipe):
title = 'Readers Digest' title = 'Readers Digest'
__author__ = 'BrianG' __author__ = 'BrianG, Gobelinus'
language = 'en' language = 'en'
description = 'Readers Digest Feeds' description = 'Readers Digest Feeds'
no_stylesheets = True no_stylesheets = True
@ -36,21 +38,22 @@ class ReadersDigest(BasicNewsRecipe):
.breadcrumb{font-family:Arial,Sans-serif;font-size:x-small;} .breadcrumb{font-family:Arial,Sans-serif;font-size:x-small;}
''' '''
feeds = [ feeds = [
('Food', 'http://www.rd.com/food/feed'), ('Food', 'http://www.rd.com/food/feed'),
('Health', 'http://www.rd.com/health/feed'), ('Health', 'http://www.rd.com/health/feed'),
('Home', 'http://www.rd.com/home/feed'), ('Home', 'http://www.rd.com/home/feed'),
('Family', 'http://www.rd.com/family/feed'), # ('Family', 'http://www.rd.com/family/feed'),
('Money', 'http://www.rd.com/money/feed'), # ('Money', 'http://www.rd.com/money/feed'),
('Travel', 'http://www.rd.com/travel/feed'), # ('Travel', 'http://www.rd.com/travel/feed'),
('True Stories', 'http://www.rd.com/true-stories/feed'),
('Advice', 'http://www.rd.com/advice/feed'),
] ]
cover_url = 'http://www.rd.com/images/logo-main-rd.gif' # cover_url = 'http://www.rd.com/images/logo-main-rd.gif'
keep_only_tags = dict(id='main-content') keep_only_tags = dict(id='main')
remove_tags = [ remove_tags = [
{'class':['post-categories']}, dict(attrs={'class': re.compile('rd-article--sidebar.*')}),
dict(attrs={'class': ['rd-article--footer', 'rd-article--sharing']}),
dict(attrs={'id': ['newsletter-form-container', 'confirmation-msg-container']}),
] ]