mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 19:33:14 +02:00
Update Scientific American
This commit is contained in:
parent
a2b16ded41
commit
09d40007b2
1 changed files with 3 additions and 2 deletions
|
|
@ -55,8 +55,9 @@ def parse_index(self):
|
|||
root = self.index_to_soup(
|
||||
'http://www.scientificamerican.com/sciammag/', as_tree=True)
|
||||
select = Select(root)
|
||||
url = [x.get('content', '') for x in select('html > head meta') if x.get('property',None) == "og:url"][0]
|
||||
self.cover_url = [x.get('src', '') for x in select('main .product-detail__image picture img')][0]
|
||||
url = [x.get('href', '') for x in select('main .store-listing__img a')][0]
|
||||
url = absurl(url)
|
||||
self.cover_url = [x.get('src', '') for x in select('main .store-listing__img img')][0]
|
||||
|
||||
# Now parse the actual issue to get the list of articles
|
||||
select = Select(self.index_to_soup(url, as_tree=True))
|
||||
|
|
|
|||
Loading…
Reference in a new issue