mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
52 lines
2.8 KiB
Plaintext
52 lines
2.8 KiB
Plaintext
# -*- coding: utf-8 -*-
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class ColombiaElTiempo02(BasicNewsRecipe):
|
|
title = u'Periódico el Tiempo'
|
|
__author__ = 'BIGO-CAVA'
|
|
language = 'es_CO'
|
|
cover_url = 'http://www.eltiempo.com/media/css/images/logo_footer.png'
|
|
remove_tags_before = dict(id='contenidoArt')
|
|
remove_tags_after = [dict(name='div', attrs={'class': 'modulo reporte'})]
|
|
keep_only_tags = [dict(name='div', id='contenidoArt')]
|
|
remove_tags = [dict(name='div', attrs={'class': 'social-media'}),
|
|
dict(name='div', attrs={'class': 'recomend-art'}),
|
|
dict(name='div', attrs={'class': 'caja-facebook'}),
|
|
dict(name='div', attrs={'class': 'caja-twitter'}),
|
|
dict(name='div', attrs={'class': 'caja-buzz'}),
|
|
dict(name='div', attrs={'class': 'ico-mail2'}),
|
|
dict(name='div', attrs={'id': 'caja-instapaper'}),
|
|
dict(name='div', attrs={'class': 'modulo herramientas'})]
|
|
oldest_article = 2
|
|
max_articles_per_feed = 100
|
|
remove_javascript = True
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
remove_empty_feeds = True
|
|
masthead_url = 'http://www.eltiempo.com/media/css/images/logo_footer.png'
|
|
publication_type = 'newspaper'
|
|
|
|
extra_css = """
|
|
p{text-align: justify; font-size: 100%}
|
|
body{ text-align: left; font-size:100% }
|
|
h1{font-family: sans-serif; font-size:150%; font-weight:bold; text-align: justify; }
|
|
h3{font-family: sans-serif; font-size:100%; font-style: italic; text-align: justify; }
|
|
"""
|
|
|
|
feeds = [(u'Colombia', u'http://www.eltiempo.com/colombia/rss.xml'),
|
|
(u'Medellin', u'http://www.eltiempo.com/colombia/medellin/rss.xml'),
|
|
(u'Economia', u'http://www.eltiempo.com/economia/rss.xml'),
|
|
(u'Deportes', u'http://www.eltiempo.com/deportes/rss.xml'),
|
|
(u'Mundo', u'http://www.eltiempo.com/mundo/rss.xml'),
|
|
(u'Gente', u'http://www.eltiempo.com/gente/rss.xml'),
|
|
(u'Vida de Hoy', u'http://www.eltiempo.com/vida-de-hoy/rss.xml'),
|
|
(u'EEUU', u'http://www.eltiempo.com/mundo/estados-unidos/rss.xml'),
|
|
(u'LatinoAmerica', u'http://www.eltiempo.com/mundo/latinoamerica/rss.xml'),
|
|
(u'Europa', u'http://www.eltiempo.com/mundo/europa/rss.xml'),
|
|
(u'Medio Oriente', u'http://www.eltiempo.com/mundo/medio-oriente/rss.xml'),
|
|
(u'Vive in Medellin', u'http://medellin.vive.in/medellin/rss.xml'),
|
|
(u'Don Juan', u'http://www.revistadonjuan.com/feedrss/'),
|
|
(u'Alo', u'http://www.eltiempo.com/alo/rss.xml')]
|