From 3f7c2e9b8e405d92be6845bce17bf3296cbc83ef Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Nov 2022 10:37:19 +0530 Subject: [PATCH] Update The Globe and Mail --- recipes/globe_and_mail.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/globe_and_mail.recipe b/recipes/globe_and_mail.recipe index 82927b5bce..55e4877b65 100644 --- a/recipes/globe_and_mail.recipe +++ b/recipes/globe_and_mail.recipe @@ -48,7 +48,7 @@ class GlobeMail(BasicNewsRecipe): return ans 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') title = self.tag_to_string(headline) url = absolutize(a['href'])