From 8bbc1c02ba435017b097e27cc4b98efda15ad1c5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 Sep 2018 08:32:00 +0530 Subject: [PATCH] Update Washington Post --- recipes/wash_post.recipe | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recipes/wash_post.recipe b/recipes/wash_post.recipe index 6994acd15c..b65d0f5e38 100644 --- a/recipes/wash_post.recipe +++ b/recipes/wash_post.recipe @@ -10,7 +10,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class TheWashingtonPost(BasicNewsRecipe): title = 'The Washington Post' __author__ = 'Darko Miletic' - description = 'Leading source for news, video and opinion on politics, business, world and national news, science, travel, entertainment and more. Our local coverage includes reporting on education, crime, weather, traffic, real estate, jobs and cars for DC, Maryland and Virginia. Offering award-winning opinion writing, entertainment information and restaurant reviews. Note that this website is currently blocked for IP addresses from Europe.' # noqa + description = 'Leading source for news, video and opinion on politics, business, world and national news, science, travel, entertainment and more. Our local coverage includes reporting on education, crime, weather, traffic, real estate, jobs and cars for DC, Maryland and Virginia. Offering award-winning opinion writing, entertainment information and restaurant reviews.' # noqa publisher = 'The Washington Post Company' category = 'news, politics, USA' oldest_article = 2 @@ -22,7 +22,10 @@ class TheWashingtonPost(BasicNewsRecipe): language = 'en' remove_empty_feeds = True publication_type = 'newspaper' - auto_cleanup = True + + keep_only_tags = [ + dict(itemprop=['headline', 'articleBody']), + ] feeds = [ (u'World', u'http://feeds.washingtonpost.com/rss/world'),