From 6f6812ccd73d1085f8c323ecea42eb6f3c989a65 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 May 2014 14:19:02 +0530 Subject: [PATCH] ... --- recipes/instapaper.recipe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/instapaper.recipe b/recipes/instapaper.recipe index 0753d0aa52..f17f4eca60 100644 --- a/recipes/instapaper.recipe +++ b/recipes/instapaper.recipe @@ -55,10 +55,10 @@ class AdvancedUserRecipe1299694372(BasicNewsRecipe): self.report_progress(0, 'Fetching feed'+' %s...'%(feedtitle if feedtitle else feedurl)) articles = [] soup = self.index_to_soup(feedurl) - for item in soup.findAll('div', attrs={'class':'title_row'}): - #description = self.tag_to_string(item.div) + for item in soup.findAll('div', attrs={'class':'js_title_row title_row'}): + # description = self.tag_to_string(item.div) atag = item.a - if atag and atag.has_key('href'): + if atag and 'href' in atag: url = atag['href'] articles.append({ 'url' :url