This commit is contained in:
Kovid Goyal 2022-05-02 14:32:06 +05:30
parent 82027ad79c
commit 6476d29ab3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -28,12 +28,13 @@ class outlook(BasicNewsRecipe):
a = h3.find('a', href=lambda x: x) a = h3.find('a', href=lambda x: x)
url = a['href'] url = a['href']
title = self.tag_to_string(a) title = self.tag_to_string(a)
desc = ''
p = h3.find_next_sibling('p')
if p:
desc = self.tag_to_string(desc)
self.log('\t\tFound article:', title) self.log('\t\tFound article:', title)
self.log('\t\t\t', url) self.log('\t\t\t', url)
ans.append({ ans.append({'title': title, 'url': url, 'description': desc})
'title': title,
'url': url,
})
return [('Articles', ans)] return [('Articles', ans)]
def preprocess_raw_html(self, raw, *a): def preprocess_raw_html(self, raw, *a):