I am trying to remove videos from my custom news feed. I have tried everything I know about python and nothing has worked. Can someone tell me what code I need to use in order to get rid of "This video cannot be played because the JavaScript isn't enabled"
Here is the code I made:
class AdvancedUserRecipe1400969285(BasicNewsRecipe):
title = u'NBC News'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
auto_cleanup_keep = '//div[@class="thumbnail"]'
filterDuplicates = True
remove_empty_feeds = True
feeds = [
(u'Top Stories' , u'http://feeds.nbcnews.com/feeds/topstories' )
,(u'U.S. News' , u'http://feeds.nbcnews.com/feeds/usnews' )
,(u'Technology' , u'http://feeds.nbcnews.com/feeds/technology' )
,(u'Investigations' , u'http://feeds.nbcnews.com/feeds/investigations' )
,(u'Business' , u'http://feeds.nbcnews.com/feeds/business' )
,(u'Science' , u'http://feeds.nbcnews.com/feeds/science' )
,(u'Health' , u'http://feeds.nbcnews.com/feeds/health' )
]
remove_tags = [
dict(name='div', attrs={'class'

'^.*video.*$')}),
]