home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / dagens_industri.recipe < prev    next >
Text File  |  2011-09-09  |  1KB  |  33 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. __license__    = 'GPLv3'
  4.  
  5. from calibre.web.feeds.news import BasicNewsRecipe
  6.  
  7. class AdvancedUserRecipe1311450855(BasicNewsRecipe):
  8.     title          = u'Dagens Industri'
  9.     __author__            = 'Jonas Svensson'
  10.     description           = 'Economy news from Sweden'
  11.     publisher             = 'DI'
  12.     category              = 'news, politics, Sweden'
  13.     oldest_article        = 2
  14.     delay                 = 1
  15.     max_articles_per_feed = 100
  16.     no_stylesheets        = True
  17.     use_embedded_content  = False
  18.     encoding              = 'utf-8'
  19.     language              = 'sv'
  20.  
  21.     feeds          = [(u'DI', u'http://di.se/rss')]
  22.  
  23.     keep_only_tags = [dict(name='h1', attrs={'id':'ctl00_ExtraWideContentRegion_WideContentRegion_MainRegion_MainContentRegion_MainBodyRegion_headlineNormal'}),dict(name='div', attrs={'id':'articleBody'})]
  24.  
  25.     remove_tags = [
  26.                      dict(name='div',attrs={'class':'article-actions clear'})
  27.                      ,dict(name='div',attrs={'class':'article-action-popup'})
  28.                      ,dict(name='div',attrs={'class':'header'})
  29.                      ,dict(name='div',attrs={'class':'content clear'})
  30.                      ,dict(name='div',attrs={'id':'articleAdvertisementDiv'})
  31.                      ,dict(name='ul',attrs={'class':'action-list'})
  32.                   ]
  33.