| 1 |
# vim:fileencoding=utf-8 |
| 2 |
from __future__ import unicode_literals |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class GrandesCorresponsalesRecipe(BasicNewsRecipe): |
| 8 |
__author__ = 'Marc Busqué <[email protected]>' |
| 9 |
__url__ = 'http://www.lamarciana.com' |
| 10 |
__version__ = '1.1.0' |
| 11 |
__license__ = 'GPL v3' |
| 12 |
__copyright__ = '2014, Marc Busqué <[email protected]>' |
| 13 |
title = 'Grandes corresponsales' |
| 14 |
description = 'Corresponsales de verdad, de los que no se quedan en el hotel.' |
| 15 |
language = 'es' |
| 16 |
tags = 'información, internacional ' |
| 17 |
oldest_article = 30 |
| 18 |
remove_empty_feeds = True |
| 19 |
no_stylesheets = True |
| 20 |
|
| 21 |
def get_extra_css(self): |
| 22 |
if not self.extra_css: |
| 23 |
br = self.get_browser() |
| 24 |
self.extra_css = ( |
| 25 |
br.open_novisit('https://raw.githubusercontent.com/laMarciana/gutenweb/master/dist/gutenweb.css').read().replace('@charset "UTF-8";', '') |
| 26 |
) |
| 27 |
return self.extra_css |
| 28 |
|
| 29 |
feeds = [ |
| 30 |
('Rafael Poch', 'http://blogs.lavanguardia.com/berlin/feed'), |
| 31 |
('Andy Robinson', 'http://blogs.lavanguardia.com/diario-itinerante/feed'), |
| 32 |
('Eugenio García Gascón', 'http://blogs.publico.es/balagan/feed/'), |
| 33 |
('Gervasio Sánchez', 'http://blogs.heraldo.es/gervasiosanchez/?feed=rss2'), |
| 34 |
('Rafael Ramos', 'http://blogs.lavanguardia.com/londres/feed'), |
| 35 |
('Olga Rodríguez', 'http://olgarodriguez.org/feed/'), |
| 36 |
('Mikel Ayestaran', 'http://www.mikelayestaran.com/blog/?feed=rss2'), |
| 37 |
('Hernán Zin', 'http://blogs.20minutos.es/enguerra/tag/corresponsales-guerra/feed/'), |
| 38 |
('Ramón Lobo', 'http://www.ramonlobo.com/feed/'), |
| 39 |
('Arturo Pérez-Reverte', 'http://feeds.feedburner.com/ArtculosDeArturoPrez-reverte'), |
| 40 |
] |