View Single Post
Old 12-22-2010, 08:51 AM   #7
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by mufc View Post
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
Starson17 is offline   Reply With Quote