mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Remove suggested link cloud
This commit is contained in:
parent
546d1f6c79
commit
a9451dd8b0
@ -86,15 +86,16 @@ 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 = [
|
||||||
|
{'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']}, {
|
'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']}, {
|
||||||
'attrs': {
|
'attrs': {
|
||||||
'class': [
|
'class': [
|
||||||
'tools comments-parent', 'u-hide', 'RelatedLinks', 'Tooltip',
|
'tools comments-parent', 'u-hide', 'RelatedLinks', 'Comments Article-container',
|
||||||
'Toolbar Toolbar--bottom', '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': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user