From bdc37ef07830d98216771a056da94dc556667c99 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Thu, 27 Apr 2023 15:27:30 +0530 Subject: [PATCH] Update psych.recipe --- recipes/psych.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/psych.recipe b/recipes/psych.recipe index 12eeacd4a5..235489565c 100644 --- a/recipes/psych.recipe +++ b/recipes/psych.recipe @@ -42,7 +42,7 @@ class PsychologyToday(BasicNewsRecipe): self.cover_url = absurl(a.img['src']) soup = self.index_to_soup(absurl(a['href'])) articles = [] - for article in soup.find('div', role='article').findAll('article'): + 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']) self.log('\n', title, 'at', url)