Update London Review of Books

This commit is contained in:
Kovid Goyal 2020-04-21 14:08:09 +05:30
parent 96a77a59c4
commit 4db135e6b2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -51,6 +51,13 @@ class LondonReviewOfBooksPayed(BasicNewsRecipe):
raise ValueError('Failed to login check username and password')
return br
def preprocess_html(self, soup):
for img in soup.findAll('img', attrs={'data-srcset': True}):
for x in img['data-srcset'].split():
if '/' in x:
img['src'] = x
return soup
def parse_index(self):
articles = []
soup = self.index_to_soup(self.INDEX)