mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update London Review of Books
This commit is contained in:
parent
96a77a59c4
commit
4db135e6b2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user