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

  1. __license__   = 'GPL v3'
  2. __author__    = 'Ricardo Jurado'
  3. __copyright__ = 'Ricardo Jurado'
  4. __version__     = 'v0.4'
  5. __date__        = '11 February 2011'
  6.  
  7. '''
  8. http://www.abc.es/
  9. '''
  10.  
  11. from calibre.web.feeds.news import BasicNewsRecipe
  12.  
  13. class AdvancedUserRecipe1296604369(BasicNewsRecipe):
  14.  
  15.     title          = u'ABC.es'
  16.     masthead_url   = 'http://www.abc.es/img/logo-abc.gif'
  17.     cover_url      = 'http://www.abc.es/img/logo-abc.gif'
  18.     publisher      = u'Grupo VOCENTO'
  19.  
  20.     __author__            = 'Ricardo Jurado'
  21.     description           = 'Noticias de Spain y el mundo'
  22.     category              = 'News,Spain,National,International,Economy'
  23.     oldest_article = 2
  24.     max_articles_per_feed = 10
  25.  
  26.     no_stylesheets = True
  27.     use_embedded_content = False
  28.     encoding = 'ISO-8859-1'
  29.     remove_javascript = True
  30.     language = 'es'
  31.  
  32.     extra_css             = """
  33.                                p{text-align: justify; font-size: 100%}
  34.                                body{ text-align: left; font-size:100% }
  35.                                h3{font-family: sans-serif; font-size:120%; font-weight:bold; text-align: justify; }
  36.                                h2{font-family: sans-serif; font-size:100%; font-weight:bold; text-align: justify; }
  37.                                h1{font-family: sans-serif; font-size:150%; font-weight:bold; text-align: justify; }
  38.                                  """
  39.  
  40.     keep_only_tags = [
  41. #                 dict(name='h2', attrs={'class':['logos']}),
  42.                  dict(name='h3', attrs={'class':['overhead']}),
  43.                  dict(name='h1', attrs={'class':'headline'}),
  44.                  dict(name='h3', attrs={'class':['subhead']}),
  45.                  dict(name='div', attrs={'class':'datosi'}),
  46.                  dict(name='div', attrs={'class':'photo-alt1'}),
  47.                  dict(name='div', attrs={'class':'text'})
  48.                  ]
  49.  
  50. #    remove_tags_before = dict(name='div' , attrs={'id':['cabecera2']})
  51.  
  52.     feeds          = [
  53.                      (u'PORTADA', u'http://www.abc.es/rss/feeds/abcPortada.xml')
  54.                     ,(u'ULTIMAS', u'http://www.abc.es/rss/feeds/abc_ultima.xml')
  55.                     ,(u'NACIONAL', u'http://www.abc.es/rss/feeds/abc_EspanaEspana.xml')
  56.                     ,(u'INTERNACIONAL', u'http://www.abc.es/rss/feeds/abc_Internacional.xml')
  57.                     ,(u'OPINION', u'http://www.abc.es/rss/feeds/abc_opinioncompleto.xml')
  58.                     ,(u'BLOGS ABC', u'http://www.abc.es/rss/feeds/blogs-abc.xml')
  59.                     ,(u'ECONOMIA', u'http://www.abc.es/rss/feeds/abc_Economia.xml')
  60.                     ,(u'CIENCIA Y TECNOLOGIA', u'http://www.abc.es/rss/feeds/abc_Ciencia_Tecnologia.xml')
  61.                     ,(u'CULTURA', u'http://www.abc.es/rss/feeds/abc_Cultura.xml')
  62.                     ,(u'LIBROS', u'http://www.abc.es/rss/feeds/abc_Libros.xml')
  63.                     ,(u'MEDIOS Y REDES', u'http://www.abc.es/rss/feeds/ABC_Medios_Redes.xml')
  64.                     ,(u'EVASION', u'http://www.abc.es/rss/feeds/abc_evasion.xml')
  65.                     ,(u'ESPECTACULOS', u'http://www.abc.es/rss/feeds/abc_Espectaculos.xml')
  66.                     ,(u'GENTE', u'http://www.abc.es/rss/feeds/abc_Gente.xml')
  67.                     ,(u'DEPORTES', u'http://www.abc.es/rss/feeds/abc_Deportes.xml')
  68.                      ]
  69.