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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2011, Rasmus Lauritsen <rasmus at lauritsen.info>'
  3. '''
  4. aoh.dk
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class aoh_dk(BasicNewsRecipe):
  10.     title                 = 'Alt om Herning'
  11.     __author__            = 'Rasmus Lauritsen'
  12.     description           = 'Nyheder fra Herning om omegn'
  13.     publisher             = 'Mediehuset Herning Folkeblad'
  14.     category              = 'news, local, Denmark'
  15.     oldest_article        = 14
  16.     max_articles_per_feed = 50
  17.     no_stylesheets        = True
  18.     delay                 = 1
  19.     encoding              = 'utf8'
  20.     use_embedded_content  = False
  21.     language              = 'da'
  22.     extra_css             = """ body{font-family: Verdana,Arial,sans-serif }
  23.                                 img{margin-bottom: 0.4em}
  24.                                 .txtContent,.stamp{font-size: small}
  25.                                 """
  26.  
  27.     conversion_options = {
  28.                           'comment'   : description
  29.                         , 'tags'      : category
  30.                         , 'publisher' : publisher
  31.                         , 'language'  : language
  32.                         }
  33.  
  34.     feeds = [(u'All news', u'http://aoh.dk/rss.xml')]
  35.  
  36.     keep_only_tags    = [
  37.                        dict(name='h1')
  38.                        ,dict(name='span', attrs={'class':['frontpage_body']})
  39.                         ]
  40.  
  41.     remove_tags        = [
  42.                             dict(name=['object','link'])
  43.                          ]
  44.