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)
return br
remove_tags = [{
'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']}, {
'attrs': {
'class': [
'tools comments-parent', 'u-hide', 'RelatedLinks', 'Tooltip',
'Toolbar Toolbar--bottom', 'Comments Article-container',
'ArticlePager', 'Media-caption']}}, {
'attrs': {
'class': lambda x: x and 'Toolbar' in x}}]
remove_tags = [
{'attrs': {'class': lambda x: x and 'Toolbar' in x}},
{'attrs': {'class': lambda x: x and 'Tooltip' in x}},
{'attrs': {'class': lambda x: x and 'Topics' in x}},
{'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']},
{'attrs': {'class': ['u-hide', 'RelatedLinks', 'Comments Article-container','ArticlePager','Media-caption']}}]
remove_attributes = ['lang']
keep_only_tags = [{
'attrs': {