mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0901c5807c
commit
36c4b70030
@ -5,7 +5,6 @@ class PolitiFactCom(BasicNewsRecipe):
|
|||||||
__author__ = u'Michael Heinz'
|
__author__ = u'Michael Heinz'
|
||||||
oldest_article = 21
|
oldest_article = 21
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
recursion = 0
|
|
||||||
language = 'en'
|
language = 'en'
|
||||||
|
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
@ -27,4 +26,9 @@ class PolitiFactCom(BasicNewsRecipe):
|
|||||||
(u'Statements', u'http://www.politifact.com/feeds/statements/truth-o-meter/')
|
(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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user