mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update New York Review of Books
This commit is contained in:
parent
e5939d3d3d
commit
47a9bbda79
@ -74,8 +74,9 @@ class NewYorkReviewOfBooks(BasicNewsRecipe):
|
||||
self.log('Issue date:', date)
|
||||
|
||||
# Find TOC
|
||||
toc = soup.find('div', attrs={'class':'current_issue'}).find('div', attrs={'class':'articles_list'})
|
||||
tocs = soup.find('div', attrs={'class':'current_issue'}).findAll('div', attrs={'class':'articles_list'})
|
||||
articles = []
|
||||
for toc in tocs:
|
||||
for div in toc.findAll('div', attrs={'class':'row'}):
|
||||
h2 = div.find('h2')
|
||||
title = self.tag_to_string(h2).strip()
|
||||
|
@ -64,8 +64,9 @@ class NewYorkReviewOfBooks(BasicNewsRecipe):
|
||||
self.log('Issue date:', date)
|
||||
|
||||
# Find TOC
|
||||
toc = soup.find('div', attrs={'class':'current_issue'}).find('div', attrs={'class':'articles_list'})
|
||||
tocs = soup.find('div', attrs={'class':'current_issue'}).findAll('div', attrs={'class':'articles_list'})
|
||||
articles = []
|
||||
for toc in tocs:
|
||||
for div in toc.findAll('div', attrs={'class':'row'}):
|
||||
h2 = div.find('h2')
|
||||
title = self.tag_to_string(h2).strip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user