From 009f8f33adaa567ef45b000d8a7948d90592960f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 6 Aug 2023 10:05:57 +0530 Subject: [PATCH] Update NYTimes Book Review --- recipes/nytimesbook.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/nytimesbook.recipe b/recipes/nytimesbook.recipe index ffd6d463f8..a1b6df9dda 100644 --- a/recipes/nytimesbook.recipe +++ b/recipes/nytimesbook.recipe @@ -62,7 +62,7 @@ class NewYorkTimesBookReview(BasicNewsRecipe): main_articles, articles = [], [] feeds = [('Features', main_articles), ('Latest', articles)] for li in toc.findAll('li'): - h2 = li.find('h2') + h2 = li.find(['h2', 'h3']) a = h2.find('a', href=True) if a is not None: title = self.tag_to_string(a) @@ -77,7 +77,7 @@ class NewYorkTimesBookReview(BasicNewsRecipe): if desc: self.log('\t', desc) for li in soup.find(id='stream-panel').find('ol').findAll('li'): - h2 = li.find('h2') + h2 = li.find(['h2', 'h3']) a = h2.findParent('a') url = absolutize(a['href']) p = h2.findNextSibling('p')