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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  3. '''
  4. www.larioja.com
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class LaRioja(BasicNewsRecipe):
  10.     title                 = 'La Rioja'
  11.     __author__            = 'Arturo Martinez Nieves'
  12.     description           = 'Noticias de La Rioja y el resto del mundo'
  13.     publisher             = 'La Rioja'
  14.     category              = 'news, politics, Spain'
  15.     oldest_article        = 2
  16.     max_articles_per_feed = 200
  17.     no_stylesheets        = True
  18.     encoding              = 'cp1252'
  19.     use_embedded_content  = False
  20.     language              = 'es'
  21.     remove_empty_feeds    = True
  22.     masthead_url          = 'http://www.larioja.com/includes/manuales/larioja/include-lariojapapeldigital-zonac-fondocabecera01.jpg'
  23.     extra_css             = ' body{font-family: Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} .photo-caption{font-size: x-small} '
  24.  
  25.     conversion_options = {
  26.                           'comment'   : description
  27.                         , 'tags'      : category
  28.                         , 'publisher' : publisher
  29.                         , 'language'  : language
  30.                         }
  31.  
  32.     keep_only_tags = [
  33.                          dict(attrs={'id':'title'})
  34.                         ,dict(attrs={'class':['overhead','headline','subhead','date','text','noticia_cont','desarrollo']})
  35.                      ]
  36.     remove_tags = [dict(name='ul')]
  37.     remove_attributes = ['width','height']
  38.  
  39.  
  40.     feeds = [
  41.               (u'Ultimas Noticias' , u'http://www.larioja.com/rss/feeds/ultima.xml'       )
  42.              ,(u'Portada'          , u'http://www.larioja.com/rss/feeds/portada.xml'                )
  43.              ,(u'Mundo'            , u'http://www.larioja.com/rss/feeds/mundo.xml'        )
  44.              ,(u'Espana'            , u'http://www.larioja.com/rss/feeds/espana.xml'        )
  45.              ,(u'Region'         , u'http://www.larioja.com/rss/feeds/region.xml'     )
  46.              ,(u'Comarcas'    , u'http://www.larioja.com/rss/feeds/comarcas.xml')
  47.              ,(u'Deportes'         , u'http://www.larioja.com/rss/feeds/deportes.xml'     )
  48.              ,(u'Economia'         , u'http://www.larioja.com/rss/feeds/economia.xml'     )
  49.              ,(u'Cultura'          , u'http://www.larioja.com/rss/feeds/cultura.xml'      )
  50.              ,(u'Opinion'          , u'http://www.larioja.com/rss/feeds/opinion.xml'      )
  51.              ,(u'Sociedad'          , u'http://www.larioja.com/rss/feeds/sociedad.xml'      )
  52.  
  53.             ]
  54.  
  55.