Update guardian.recipe

This commit is contained in:
unkn0w7n 2024-07-06 10:29:29 +05:30
parent d01c4c03ac
commit 4565069f61

View File

@ -114,3 +114,9 @@ class Guardian(BasicNewsRecipe):
feeds = list(self.parse_section(self.base_url))
feeds += list(self.parse_section('https://www.theguardian.com/uk/sport'))
return feeds
def preprocess_html(self, soup):
for table in soup.findAll('table'):
if len(table.findAll('tr')) > 20:
table.decompose()
return soup