Update The Times

Merge branch 'patch-2' of https://github.com/bobbysteel/calibre
This commit is contained in:
Kovid Goyal 2017-12-11 18:58:17 +05:30
commit eed221347e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -86,15 +86,13 @@ class TimesOnline(BasicNewsRecipe):
br.open('https://login.thetimes.co.uk/', data) br.open('https://login.thetimes.co.uk/', data)
return br return br
remove_tags = [{ remove_tags = [
'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']}, { {'attrs': {'class': lambda x: x and 'Toolbar' in x}},
'attrs': { {'attrs': {'class': lambda x: x and 'Tooltip' in x}},
'class': [ {'attrs': {'class': lambda x: x and 'Topics' in x}},
'tools comments-parent', 'u-hide', 'RelatedLinks', 'Tooltip', {'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']},
'Toolbar Toolbar--bottom', 'Comments Article-container', {'attrs': {'class': ['u-hide', 'RelatedLinks', 'Comments Article-container','ArticlePager','Media-caption']}}]
'ArticlePager', 'Media-caption']}}, {
'attrs': {
'class': lambda x: x and 'Toolbar' in x}}]
remove_attributes = ['lang'] remove_attributes = ['lang']
keep_only_tags = [{ keep_only_tags = [{
'attrs': { 'attrs': {