Quote:
Originally Posted by lordvetinari2
Following the sticky, I have used:
Code:
def parse_feeds (self):
feeds = BasicNewsRecipe.parse_feeds(self)
for feed in feeds:
for article in feed.articles[:]:
print 'article.title is: ', article.title
if 'PUBLICIDADE' in article.title.upper():
feed.articles.remove(article)
return feeds
It doesn't work.

|
It would if you indented it correctly with four more spaces before each line. By not indenting it, it is outside your main recipe class and is never executed.