mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update psych.recipe
This commit is contained in:
parent
02e3ba7588
commit
bdc37ef078
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user