View Single Post
Old 05-18-2010, 08:25 PM   #1934
mwheinz
award-winning bozo
mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.
 
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
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