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