mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
dd9b8ba1c8
commit
b72ebeb095
@ -120,6 +120,11 @@ class NatGeo(BasicNewsRecipe):
|
||||
.auth, .time { font-size:small; color:#5c5c5c; }
|
||||
'''
|
||||
|
||||
def get_cover_url(self):
|
||||
soup = self.index_to_soup('https://ngsingleissues.nationalgeographic.com/history')
|
||||
wrap = soup.find(attrs={'class':'product-image-wrapper'})
|
||||
return wrap.img['src']
|
||||
|
||||
def parse_index(self):
|
||||
soup = self.index_to_soup('https://www.nationalgeographic.com/history/history-magazine')
|
||||
ans = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user