This commit is contained in:
Kovid Goyal 2018-07-01 07:33:48 +05:30
parent 313b7f3454
commit 57398ee050
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -102,8 +102,7 @@ class GN(BasicNewsRecipe):
for r in soup.findAll(attrs={'class': 'pgr'}): for r in soup.findAll(attrs={'class': 'pgr'}):
r.extract() r.extract()
for r in soup.findAll(attrs={'class': 'cm-i-a'}): for r in soup.findAll(attrs={'class': 'cm-i-a'}):
r.replaceWith('<div style="clear:both"></div>' + r.replaceWith('<div style="clear:both"></div>' + r.prettify() + '<div style="clear:both"></div>')
r.prettify() + '<div style="clear:both"></div>')
return soup return soup
keep_only_tags = [ keep_only_tags = [