From 43f03aa6c2ac08891b6adbb1fb501b1a9d66e98e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Mar 2016 17:55:48 +0530 Subject: [PATCH] Update The New York Times Book Review --- recipes/nytimesbook.recipe | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/recipes/nytimesbook.recipe b/recipes/nytimesbook.recipe index 63f1da9532..f36e93bb3b 100644 --- a/recipes/nytimesbook.recipe +++ b/recipes/nytimesbook.recipe @@ -12,8 +12,15 @@ class NewYorkTimesBookReview(BasicNewsRecipe): encoding = 'utf-8' keep_only_tags = [ - dict(id=['story-heading', 'story-meta-footer']), + dict(id=['headline', 'story-meta-footer']), dict(itemprop=['associatedMedia', 'articleBody', 'reviewBody']), + dict(attrs={'class':'story-body'}), + ] + remove_tags = [ + dict(id=['d-promo-realestate', 'books-update-email-promo']), + dict(attrs={'class':lambda x: x and 'skip-to-text-link' in x.split()}), + dict(attrs={'class':lambda x: x and 'story-meta-footer-sharetools' in x.split()}), + dict(attrs={'class':lambda x: x and 'story-footer-links' in x.split()}), ] def parse_index(self):