Also download peoms from Spectator

This commit is contained in:
Kovid Goyal 2022-09-30 07:32:24 +05:30
parent 63b058baa6
commit 17059daeac
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -82,7 +82,7 @@ class spectator(BasicNewsRecipe):
'MagazineContent_spectator-magazine-content__article-card___' 'MagazineContent_spectator-magazine-content__article-card___'
)): )):
a = div.find('a', attrs={ a = div.find('a', attrs={
'href': lambda x: x and x.startswith(('/article/', '/illustration/'))}) 'href': lambda x: x and x.startswith(('/article/', '/illustration/', '/poem/'))})
if a is None: if a is None:
continue continue
url = absurl(a['href']) url = absurl(a['href'])