mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update National Geographic Magazine
This commit is contained in:
parent
c1ae0a275f
commit
4accf0954c
@ -12,7 +12,9 @@ class NGM(BasicNewsRecipe):
|
||||
auto_cleanup_keep = '//div[@class="featurepic"]'
|
||||
|
||||
def nejm_get_index(self):
|
||||
return self.index_to_soup('http://ngm.nationalgeographic.com/2013/10/table-of-contents')
|
||||
soup = self.index_to_soup('http://ngm.nationalgeographic.com/')
|
||||
a = soup.find('div', id='current_issue').find('a', href=True)
|
||||
return self.index_to_soup('http://ngm.nationalgeographic.com' + a['href'])
|
||||
|
||||
# To parse artice toc
|
||||
def parse_index(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user