mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update The Globe and Mail
This commit is contained in:
parent
0eaaae9ccc
commit
5832bb74b1
@ -28,11 +28,11 @@ class GlobeMail(BasicNewsRecipe):
|
|||||||
remove_attributes = ['style']
|
remove_attributes = ['style']
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='h1'),
|
classes('article-title c-article-meta l-article l-article-title')
|
||||||
dict(name='main', attrs={'class': lambda x: x and 'article-primary-content-chain' in x.split()}),
|
|
||||||
]
|
]
|
||||||
remove_tags = [
|
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):
|
def parse_index(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user