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

  1. # -*- coding: utf-8 -*-
  2.  
  3. from calibre.web.feeds.news import BasicNewsRecipe
  4.  
  5.  
  6.  
  7. class AdvancedUserRecipe1311790237(BasicNewsRecipe):
  8.     title          = u'Peri├│dico El Colombiano'
  9.     language = 'es_CO'
  10.     __author__  = 'BIGO-CAVA'
  11.     cover_url     = 'http://www.elcolombiano.com/images/logoElColombiano348x46.gif'
  12.     remove_tags_before = dict(id='contenidoArt')
  13.     remove_tags_after  = dict(id='enviaTips')
  14.     remove_tags_after  = dict(id='zonaPata')
  15.     oldest_article = 1
  16.     max_articles_per_feed = 100
  17.     remove_javascript = True
  18.     no_stylesheets        = True
  19.     use_embedded_content  = False
  20.     remove_empty_feeds    = True
  21.     masthead_url          = 'http://www.elcolombiano.com/images/logoElColombiano348x46.gif'
  22.     publication_type      = 'newspaper'
  23.  
  24.     extra_css             = """
  25.                                p{text-align: justify; font-size: 100%}
  26.                                body{ text-align: left; font-size:100% }
  27.                                h1{font-family: sans-serif; font-size:150%; font-weight:bold; text-align: justify; }
  28.                                h3{font-family: sans-serif; font-size:100%; font-style: italic; text-align: justify; }
  29.                                  """
  30.  
  31.  
  32.     feeds          = [(u'Portada', u'http://www.elcolombiano.com/rss/portada.xml'),
  33.               (u'Antioquia', u'http://www.elcolombiano.com/rss/Antioquia.xml'),
  34.               (u'Colombia', u'http://www.elcolombiano.com/rss/Colombia.xml'),
  35.               (u'Economia', u'http://www.elcolombiano.com/rss/Economia.xml'),
  36.               (u'Internacional', u'http://www.elcolombiano.com/rss/Internacional.xml'),
  37.               (u'Politica', u'http://www.elcolombiano.com/rss/Politica.xml'),
  38.               (u'Cultura', u'http://www.elcolombiano.com/rss/Cultura.xml'),
  39.               (u'Entretenimiento', u'http://www.elcolombiano.com/rss/Farandula.xml'),
  40.               (u'Tecnologia', u'http://www.elcolombiano.com/rss/Tecnologia.xml'),
  41.               (u'Television', u'http://www.elcolombiano.com/rss/Television.xml'),
  42.               (u'Vida y Sociedad', u'http://www.elcolombiano.com/rss/Vida.xml'),
  43.               (u'Turismo', u'http://www.elcolombiano.com/rss/Turismo.xm'),
  44.               (u'Salud', u'http://www.elcolombiano.com/rss/Salud.xml'),
  45.               (u'Ciencia', u'http://www.elcolombiano.com/rss/Ciencia.xml')]
  46.  
  47.     remove_tags = [dict(name='div', attrs={'class':'objetosRelacionados'}),
  48. dict(name='div', attrs={'class':'notasRelacionadas contenedor'}),
  49. dict(name='div', attrs={'class':'comentarios'}),
  50. dict(name='div', attrs={'class':'mapaDelSitio'}),
  51. dict(name='div', attrs={'class':'creditos'}),
  52. dict(name='div', attrs={'class':'votos'}),
  53. dict(name='div', attrs={'class':'divopt2'}),
  54. dict(name='div', attrs={'class':'comentarios'}),
  55. dict(name='div', attrs={'class':'pestanasLateral'}),
  56. dict(name='div', attrs={'class':'resumenSeccion'}),
  57. dict(name='div', attrs={'class':'zonaComercial'}),
  58. dict(name='div', attrs={'id':'zonaPata'})]
  59.