Update psych.recipe

This commit is contained in:
unkn0w7n 2023-04-27 15:27:30 +05:30 committed by GitHub
parent 02e3ba7588
commit bdc37ef078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)