This commit is contained in:
Kovid Goyal 2024-01-10 12:17:26 +05:30
commit e96687515a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -75,3 +75,8 @@ class ForeignPolicy(BasicNewsRecipe):
self.log('\t', title, url, '\n\t', desc)
feeds_dict[current_section].append({"title": title, "url": url, "description": desc})
return [(section, articles) for section, articles in feeds_dict.items()]
def preprocess_html(self, soup):
for img in soup.findAll('img', attrs={'src':True}):
img['src'] = img['src'].split('?')[0] + '?w=600?quality=90'
return soup