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