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):