From 36c4b70030e5a516b6daad02c521959a603bbce9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 23 Aug 2011 23:09:23 -0600 Subject: [PATCH] ... --- recipes/politifact.recipe | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes/politifact.recipe b/recipes/politifact.recipe index e3550ce7f1..6f5344ae4e 100644 --- a/recipes/politifact.recipe +++ b/recipes/politifact.recipe @@ -5,7 +5,6 @@ class PolitiFactCom(BasicNewsRecipe): __author__ = u'Michael Heinz' oldest_article = 21 max_articles_per_feed = 100 - recursion = 0 language = 'en' no_stylesheets = True @@ -27,4 +26,9 @@ class PolitiFactCom(BasicNewsRecipe): (u'Statements', u'http://www.politifact.com/feeds/statements/truth-o-meter/') ] - + def preprocess_html(self, soup): + for alink in soup.findAll('a'): + if alink.string is not None: + tstr = alink.string + alink.replaceWith(tstr) + return soup