Quote:
Originally Posted by Starson17
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