View Single Post
Old 05-18-2010, 08:25 PM   #1934
mwheinz
award-winning bozo
mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.mwheinz can grok the meaning of the universe.
 
Posts: 240
Karma: 157113
Join Date: Sep 2009
Location: Philadelphia
Device: Nook Color
mlstein,

Try this:

Code:
class TomDispatch(BasicNewsRecipe):
    title          = u'TomDispatch'
    __author__     = u'Michael Heinz'
    oldest_article = 21
    max_articles_per_feed = 100
    recursion = 2
    use_embedded_content = False
    no_stylesheets = True

    publication_type = 'magazine'
    masthead_url = 'http://www.tomdispatch.com/application/images/site/tomdispatch_logo_v1.gif'
    cover_url = 'http://www.tomdispatch.com/application/images/site/tomdispatch_logo_v1.gif'

    remove_tags = [ 
                     dict(name='div', attrs={'id':'postSideBar'}),
                  ]

    keep_only_tags = [dict(name='div', attrs={'id':'mainWide'})]
    
    feeds = [
              (u'Articles', u'feed://feeds.feedburner.com/tomdispatch/esUU'),
            ]

    def get_article_url(self, article):
        return article.get('feedburner_origlink', None)
mwheinz is offline