Remove width and height attributes from economist download

This commit is contained in:
Kovid Goyal
2020-03-17 22:59:20 +05:30
parent 8dd68d157d
commit cdb8e6025f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ class Economist(BasicNewsRecipe):
]
keep_only_tags = [dict(name='article', id=lambda x: not x)]
no_stylesheets = True
remove_attributes = ['data-reactid']
remove_attributes = ['data-reactid', 'width', 'height']
# economist.com has started throttling after about 60% of the total has
# downloaded with connection reset by peer (104) errors.
delay = 1
+1 -1
View File
@@ -150,7 +150,7 @@ class Economist(BasicNewsRecipe):
]
keep_only_tags = [dict(name='article', id=lambda x: not x)]
no_stylesheets = True
remove_attributes = ['data-reactid']
remove_attributes = ['data-reactid', 'width', 'height']
# economist.com has started throttling after about 60% of the total has
# downloaded with connection reset by peer (104) errors.
delay = 1