mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Wired Magazine
This commit is contained in:
parent
2fcff93e07
commit
4699aaaf56
@ -59,8 +59,8 @@ class WiredDailyNews(BasicNewsRecipe):
|
|||||||
for a in soup.find('main').findAll('a', href=True):
|
for a in soup.find('main').findAll('a', href=True):
|
||||||
url = a['href']
|
url = a['href']
|
||||||
if url.startswith('http://www.wired.com/') and url.endswith('/'):
|
if url.startswith('http://www.wired.com/') and url.endswith('/'):
|
||||||
title = self.tag_to_string(a.find('h2'))
|
title = self.tag_to_string(a.parent.find('h2'))
|
||||||
dateloc = a.find('time')
|
dateloc = a.parent.find('time')
|
||||||
date = self.tag_to_string(dateloc)
|
date = self.tag_to_string(dateloc)
|
||||||
if title.lower() != 'read more' and title and url not in seen:
|
if title.lower() != 'read more' and title and url not in seen:
|
||||||
seen.add(url)
|
seen.add(url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user