Quote:
Originally Posted by marbs
thought of something like this:
once i add this function, the recipe does not give me any articles. am i using it right?
|
You are using "=" the assignment operator. You want "==" the comparison operator. You could also use
Code:
preprocess_regexps = [
(re.compile(r'<p> </p>', re.DOTALL|re.IGNORECASE), lambda match: '')
]
Quote:
can i the description as one of the variables that postprocess_html gets?
what is the name of the description variable in calibre?
|
The name is "text_summary", available in parse_feeds
Code:
def parse_feeds (self):
feeds = BasicNewsRecipe.parse_feeds(self)
for feed in feeds:
for article in feed.articles[:]:
print 'article.text_summary is: ', article.text_summary
return feeds
I've never used it outside of parse_feeds, that part is up to you.