mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 10:05:38 +01:00
Update The Globe and Mail
This commit is contained in:
parent
0eaaae9ccc
commit
5832bb74b1
1 changed files with 3 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue