Am trying to run a test with the ForeignPolicy.com main feed. Have tried a number of variations, and think that this following snippet would be closest to what I want to get, but no love.
Code:
class AdvancedUserRecipe1248523694(BasicNewsRecipe):
title = u'Foreign Policy Test'
oldest_article = 15
max_articles_per_feed = 100
keep_only_tags = [dict(name='div', attrs={'id':'art-mast'}),dict(name='div', attrs={'id':'art-body'})]
feeds = [(u'Main', u'http://www.foreignpolicy.com/node/feed')]
def print_version(self, url):
return url + '?print=yes&hidecomments=yes&page=full'
Not sure if my syntax is off, but I continually get 'IndexError: list index out of range' (see attached logs).
Any thoughts?