Skip to content

Commit

Permalink
Update NYTimes Book Review
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Aug 6, 2023
1 parent d82e5ee commit 009f8f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/nytimesbook.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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')
Expand Down

0 comments on commit 009f8f3

Please sign in to comment.