mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-16 17:35:21 +01:00
Update Wired Magazine
This commit is contained in:
parent
2fcff93e07
commit
4699aaaf56
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ def parse_wired_index_page(self, currenturl, seen):
|
|||
for a in soup.find('main').findAll('a', href=True):
|
||||
url = a['href']
|
||||
if url.startswith('http://www.wired.com/') and url.endswith('/'):
|
||||
title = self.tag_to_string(a.find('h2'))
|
||||
dateloc = a.find('time')
|
||||
title = self.tag_to_string(a.parent.find('h2'))
|
||||
dateloc = a.parent.find('time')
|
||||
date = self.tag_to_string(dateloc)
|
||||
if title.lower() != 'read more' and title and url not in seen:
|
||||
seen.add(url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue