diff --git a/recipes/psych.recipe b/recipes/psych.recipe index 235489565c..757621f108 100644 --- a/recipes/psych.recipe +++ b/recipes/psych.recipe @@ -43,8 +43,8 @@ class PsychologyToday(BasicNewsRecipe): soup = self.index_to_soup(absurl(a['href'])) articles = [] for article in soup.findAll('div', attrs={'class':'article-text'}): - title = self.tag_to_string(article.find(['h2','h3'])).strip() - url = absurl(article.find(['h2','h3']).a['href']) + title = self.tag_to_string(article.find(attrs={'class':['h2','h3']})).strip() + url = absurl(article.find(attrs={'class':['h2','h3']}).a['href']) self.log('\n', title, 'at', url) desc = self.tag_to_string(article.find('p',**classes('description'))).strip() author = self.tag_to_string(article.find('p',**classes('byline')).a).strip()