From 771cf7e9ce63233aed9a4c9aa5add45456cd72c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 27 Mar 2018 20:37:47 +0530 Subject: [PATCH] Update Telegraph UK --- recipes/telegraph_uk.recipe | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/telegraph_uk.recipe b/recipes/telegraph_uk.recipe index 48e5e7840e..2befc8e0c2 100644 --- a/recipes/telegraph_uk.recipe +++ b/recipes/telegraph_uk.recipe @@ -82,4 +82,8 @@ class TelegraphUK(BasicNewsRecipe): if int(item.get('width', 0)) > 700: img['src'] = absolutize(item['src']) break + for img in soup.findAll('div', attrs={'data-js': 'LazyImage'}): + img['style'] = '' + img.name = 'img' + img['src'] = img['data-srcset'].split()[0] return soup