From 09d40007b23321605f5457e738bbd79416c3df55 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Mar 2019 09:05:29 +0530 Subject: [PATCH] Update Scientific American --- recipes/scientific_american.recipe | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/scientific_american.recipe b/recipes/scientific_american.recipe index 544f24ea3c..7a92dd0d5a 100644 --- a/recipes/scientific_american.recipe +++ b/recipes/scientific_american.recipe @@ -55,8 +55,9 @@ class ScientificAmerican(BasicNewsRecipe): 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))