This commit is contained in:
Kovid Goyal 2016-12-12 01:06:38 +05:30
commit 3c77f00387

View File

@ -107,3 +107,11 @@ class WiredDailyNews(BasicNewsRecipe):
magazine_year_month = self.get_magazine_year_month('.')
return [('Magazine-' + magazine_year_month, articles)]
def get_cover_url(self):
'''
get the most recent magazine cover
:return: url
'''
soup = self.index_to_soup('https://www.wired.com/category/magazine/')
return soup.find(id='mag-card').find('img').get('src')