mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update financial_times.recipe
This commit is contained in:
parent
d1bbe63eb1
commit
0a7be539f1
@ -146,6 +146,10 @@ class ft(BasicNewsRecipe):
|
||||
return html
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for table in soup.findAll('table'):
|
||||
if len(table.find('tbody').findAll('tr')) > 20:
|
||||
table.find('tbody').decompose()
|
||||
table.string = '** a table that was supposed to be here has been removed.'
|
||||
for con in soup.findAll(attrs={'class':'n-content-layout__slot'}):
|
||||
if con.find('figure'):
|
||||
con['id'] = 'fig'
|
||||
|
Loading…
x
Reference in New Issue
Block a user