Update The Globe and Mail

This commit is contained in:
Kovid Goyal 2022-11-23 10:37:19 +05:30
parent 168718e3e7
commit 3f7c2e9b8e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -48,7 +48,7 @@ class GlobeMail(BasicNewsRecipe):
return ans return ans
def parse_gm_section(self, soup): def parse_gm_section(self, soup):
for a in soup.findAll('a', href=True, attrs={'data-lt-lid': lambda x: x and x.startswith('Headline.')}): for a in soup.findAll('a', href=True, attrs={'data-lt-pos': lambda x: x and x.endswith('featured')}):
headline = a.find('div', 'c-card__hed-text') headline = a.find('div', 'c-card__hed-text')
title = self.tag_to_string(headline) title = self.tag_to_string(headline)
url = absolutize(a['href']) url = absolutize(a['href'])