View Single Post
Old 05-30-2014, 06:55 AM   #6
vinny3777
Junior Member
vinny3777 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2014
Device: Kindle Paperwhite 2nd Generation
Did that Kovid but this is the error message that came up

calibre, version 1.37.0
ERROR: Invalid input: <p>Could not create recipe. Error:<br>invalid syntax (<string>, line 23)

Here is the code again

class AdvancedUserRecipe1400969285(BasicNewsRecipe):
title = u'NBC News'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = False
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':lambda x: x and 'video' in x.split())}),

]
vinny3777 is offline   Reply With Quote