mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update New York Times Book Review
This commit is contained in:
parent
0255bce10d
commit
0398ecd9d3
@ -38,6 +38,8 @@ class NewYorkTimesBookReview(BasicNewsRecipe):
|
||||
self.log('\t', desc)
|
||||
for li in soup.find(id='latest-panel').find('ol').findAll('li'):
|
||||
a = li.find('a', attrs={'class':'story-link'}, href=True)
|
||||
if a is None:
|
||||
continue
|
||||
url = a['href']
|
||||
m = a.find(attrs={'class':'story-meta'})
|
||||
title = self.tag_to_string(m.find('h2'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user