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_nueva.recipe < prev    next >
Text File  |  2011-09-09  |  4KB  |  75 lines

  1. # -*- coding: utf-8 -*-
  2. __license__   = 'GPL v3'
  3. __author__    = 'Luis Hernandez'
  4. __copyright__ = 'Luis Hernandez<tolyluis@gmail.com>'
  5. description   = 'Diario independiente de Asturias - v1.0 - 27 Jan 2011'
  6.  
  7. '''
  8. www.lne.es
  9. '''
  10.  
  11. from calibre.web.feeds.news import BasicNewsRecipe
  12.  
  13. class AdvancedUserRecipe1294946868(BasicNewsRecipe):
  14.  
  15.     title          = u'La Nueva Espa├▒a'
  16.     publisher      = u'Editorial Prensa Iberica'
  17.  
  18.     __author__            = 'Luis Hernandez'
  19.     description           = 'Diario independiente de Asturias'
  20.     cover_url     = 'http://estaticos00.lne.es//elementosWeb/mediaweb/images/iconos/logo2.jpg'
  21.  
  22.     oldest_article = 3
  23.     max_articles_per_feed = 100
  24.  
  25.     remove_javascript = True
  26.     no_stylesheets        = True
  27.     use_embedded_content  = False
  28.  
  29.     encoding              = 'ISO-8859-1'
  30.     language              = 'es'
  31.     timefmt        = '[%a, %d %b, %Y]'
  32.  
  33.     keep_only_tags = [
  34.                                 dict(name='div', attrs={'class':['noticia_titular','subtitulo','noticiadd2','noticia_texto']})
  35.                                ,dict(name='div', attrs={'id':['noticia_texto']})
  36.                              ]
  37.  
  38.     extra_css             = ' p{text-align: justify; font-size: 100%} body{ text-align: left; font-family: serif; font-size: 100% } h1{ font-family: sans-serif; font-size:150%; font-weight: 600; text-align: justify; } h2{ font-family: sans-serif; font-size:120%; font-weight: 500; text-align: justify } '
  39.  
  40.  
  41.     remove_tags_before = dict(name='div' , attrs={'class':['contenedor']})
  42.     remove_tags_after = dict(name='div' , attrs={'class':['fin_noticia']})
  43.  
  44.     remove_tags = [
  45.                              dict(name='div', attrs={'class':['epigrafe','antetitulo','bloqueclear','bloqueclear_video','cuadro_multimedia','cintillo2','editor_documentos','noticiadd','noticiadd3','noticiainterior','fin_noticia']})
  46.                             ,dict(name='div', attrs={'id':['evotos']})
  47.                          ]
  48.  
  49.     feeds = [
  50.                    (u'Al minuto'            , u'http://www.lne.es/elementosInt/rss/AlMinuto')
  51.                   ,(u'General'              , u'http://www.lne.es/elementosInt/rss/55')
  52.                   ,(u'Nacional'             , u'http://www.lne.es/elementosInt/rss/43')
  53.                   ,(u'Internacional'      , u'http://www.lne.es/elementosInt/rss/44')
  54.                   ,(u'Economia'           , u'http://www.lne.es/elementosInt/rss/45')
  55.                   ,(u'Deportes'            , u'http://www.lne.es/elementosInt/rss/47')
  56.                   ,(u'Campeones'        , u'http://www.lne.es/elementosInt/rss/65')
  57.                   ,(u'Sociedad'            , u'http://www.lne.es/elementosInt/rss/46')
  58.                   ,(u'Sucesos'             , u'http://www.lne.es/elementosInt/rss/48')
  59.                   ,(u'Galeria'               , u'http://www.lne.es/elementosInt/rss/51')
  60.                   ,(u'Cultura'               , u'http://www.lne.es/elementosInt/rss/66')
  61.                   ,(u'Motor'                 , u'http://www.lne.es/elementosInt/rss/62')
  62.                   ,(u'Opinion'              , u'http://www.lne.es/elementosInt/rss/52')
  63.                   ,(u'Asturias'              , u'http://www.lne.es/elementosInt/rss/42')
  64.                   ,(u'Oviedo'               , u'http://www.lne.es/elementosInt/rss/31')
  65.                   ,(u'Gijon'                  , u'http://www.lne.es/elementosInt/rss/35')
  66.                   ,(u'Aviles'                 , u'http://www.lne.es/elementosInt/rss/36')
  67.                   ,(u'Nalon'                 , u'http://www.lne.es/elementosInt/rss/37')
  68.                   ,(u'Cuencas'             , u'http://www.lne.es/elementosInt/rss/38')
  69.                   ,(u'Caudal'               , u'http://www.lne.es/elementosInt/rss/39')
  70.                   ,(u'Oriente'              , u'http://www.lne.es/elementosInt/rss/40')
  71.                   ,(u'Occidente'          , u'http://www.lne.es/elementosInt/rss/41')
  72.                   ,(u'Mar y Campo'     , u'http://www.lne.es/elementosInt/rss/63')
  73.                   ,(u'Ultima'               , u'http://www.lne.es/elementosInt/rss/50')
  74. ]
  75.