Quote:
Originally Posted by mufc
On trying to delete pages with Gallery in the title I added another instance of the def parse feed but reversed where VIDEO and GALLERY are in the recipe and then I got rid of Gallery pages but not Video pages.
|
You can't define parse_feeds twice.
I didn't closely follow what worked for you, but if they worked separately, you can just run them separately with an elif:
Code:
if 'VIDEO' in article.title.upper():
feed.articles.remove(article)
elif 'GALLERY' in article.url.upper():
feed.articles.remove(article)
return feeds