From 5832bb74b15a9a2a688e53d6986e71f7e94a03b8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 31 Oct 2021 08:10:29 +0530 Subject: [PATCH] Update The Globe and Mail --- recipes/globe_and_mail.recipe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/globe_and_mail.recipe b/recipes/globe_and_mail.recipe index a2661823af..82927b5bce 100644 --- a/recipes/globe_and_mail.recipe +++ b/recipes/globe_and_mail.recipe @@ -28,11 +28,11 @@ class GlobeMail(BasicNewsRecipe): remove_attributes = ['style'] keep_only_tags = [ - dict(name='h1'), - dict(name='main', attrs={'class': lambda x: x and 'article-primary-content-chain' in x.split()}), + classes('article-title c-article-meta l-article l-article-title') ] remove_tags = [ - classes('c-ad pb-f-commercial-dfp-ads pb-f-article-actions pb-f-article-meta'), + classes('c-ad pb-f-commercial-dfp-ads pb-f-article-actions pb-f-article-meta article-toolbar'), + dict(name='source'), ] def parse_index(self):