View Single Post
Old 07-26-2009, 01:42 AM   #616
OnwardAhead
Junior Member
OnwardAhead began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2009
Location: Kenya
Device: Kindle DX
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?
Attached Files
File Type: txt testlog.txt (44.0 KB, 349 views)
OnwardAhead is offline