This commit is contained in:
Kovid Goyal 2011-08-23 23:09:23 -06:00
parent 0901c5807c
commit 36c4b70030

View File

@ -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