From 09c29e476a509495fd73e250f844e0c8715648d5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Oct 2014 09:46:31 +0530 Subject: [PATCH] Update The New Yorker --- recipes/new_yorker.recipe | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes/new_yorker.recipe b/recipes/new_yorker.recipe index 4229f67f2c..7c01816f5a 100644 --- a/recipes/new_yorker.recipe +++ b/recipes/new_yorker.recipe @@ -42,7 +42,14 @@ class NewYorker(BasicNewsRecipe): url = h2.find('a', href=True)['href'] a = h2.find('a') title = self.tag_to_string(a) + h3 = h2.findNextSibling('h3') desc = '' + if h3 is not None: + desc += self.tag_to_string(h3) + p = h2.findNextSibling('p') + if p is not None: + desc += '. \n' + self.tag_to_string(p) + self.log('Found article:', title) self.log('\t', url) self.log('\t', desc)