View Single Post
Old 02-18-2011, 09:53 AM   #3
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 Starson17 View Post
I'll take a quick look at it.
It's not a trivial fix. The old recipe deleted/kept content using tag identifiers. The simplest test is to turn off the tag-based content deletion to see if the desired content shows up. It doesn't. It also won't show up in a browser if scripting is blocked. The site is doing something fun to show ads, prevent scraping, etc. It can be worked around, but will take time to figure out.

If anyone else wants to work on it, here's some code to strip out the numerous VIDEO links:

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 'VIDEO' in article.title.upper():
            feed.articles.remove(article)
      return feeds
Starson17 is offline   Reply With Quote