| 1 |
__license__ = 'GPL v3' |
| 2 |
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>' |
| 3 |
''' |
| 4 |
www.diariovasco.com |
| 5 |
''' |
| 6 |
|
| 7 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 8 |
|
| 9 |
|
| 10 |
class DiarioVasco(BasicNewsRecipe): |
| 11 |
title = 'Diario Vasco' |
| 12 |
__author__ = 'Darko Miletic' |
| 13 |
description = 'Noticias de pais Vasco y el resto del mundo' |
| 14 |
publisher = 'Diario Vasco' |
| 15 |
category = 'news, politics, Spain' |
| 16 |
oldest_article = 2 |
| 17 |
max_articles_per_feed = 200 |
| 18 |
no_stylesheets = True |
| 19 |
encoding = 'cp1252' |
| 20 |
use_embedded_content = False |
| 21 |
language = 'es' |
| 22 |
remove_empty_feeds = True |
| 23 |
masthead_url = 'http://www.diariovasco.com/img/rd.logotipo2_dvasco.gif' |
| 24 |
extra_css = ' body{font-family: Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} .photo-caption{font-size: x-small} ' |
| 25 |
|
| 26 |
conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language} |
| 27 |
|
| 28 |
keep_only_tags = [dict(attrs={'id': 'title'}), dict(attrs={'class': ['overhead', 'headline', 'subhead', 'date', 'text', 'noticia_cont', 'desarrollo']})] |
| 29 |
remove_tags = [dict(name='ul')] |
| 30 |
remove_attributes = ['width', 'height'] |
| 31 |
|
| 32 |
feeds = [ |
| 33 |
('Ultimas Noticias', 'http://www.diariovasco.com/rss/feeds/ultima.xml'), |
| 34 |
('Portada', 'http://www.diariovasco.com/portada.xml'), |
| 35 |
('Politica', 'http://www.diariovasco.com/rss/feeds/politica.xml'), |
| 36 |
('Deportes', 'http://www.diariovasco.com/rss/feeds/deportes.xml'), |
| 37 |
('Economia', 'http://www.diariovasco.com/rss/feeds/economia.xml'), |
| 38 |
('Mundo', 'http://www.diariovasco.com/rss/feeds/mundo.xml'), |
| 39 |
('Cultura', 'http://www.diariovasco.com/rss/feeds/cultura.xml'), |
| 40 |
('Gente', 'http://www.diariovasco.com/rss/feeds/gente.xml'), |
| 41 |
('Contraportada', 'http://www.diariovasco.com/rss/feeds/contraportada.xml'), |
| 42 |
] |