Reduce size of images downloaded by la times recipe

This commit is contained in:
Kovid Goyal 2016-02-17 23:01:13 +05:30
parent 0485247163
commit ed20dd6233

View File

@ -50,7 +50,7 @@ class LATimes(BasicNewsRecipe):
def preprocess_html(self, soup):
for img in soup.findAll('img', attrs={'data-baseurl':True}):
img['src'] = img['data-baseurl']
img['src'] = img['data-baseurl'] + '/750'
for div in soup.findAll(itemprop='articleBody'):
div.extract()
soup.find('body').append(div)