mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update guardian.recipe
This commit is contained in:
parent
d01c4c03ac
commit
4565069f61
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user