This commit is contained in:
Kovid Goyal 2024-04-26 10:54:44 +05:30
commit 63a3852c9f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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'