mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 14:26:06 +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']
|
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…
Reference in a new issue