mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
# vim:fileencoding=utf-8
|
|
from __future__ import unicode_literals
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class PeriodismoHumanoRecipe (BasicNewsRecipe):
|
|
__author__ = 'Marc Busqué <marc@lamarciana.com>'
|
|
__url__ = 'http://www.lamarciana.com'
|
|
__version__ = '1.0.0'
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2014, Marc Busqué <marc@lamarciana.com>'
|
|
title = u'Periodismo Humano'
|
|
description = u'periodismohumano es un nuevo medio de comunicación con enfoque de derechos humanos y sin ánimo de lucro, dirigido por Javier Bauluz y con un equipo de redacción profesional, con corresponsales, colaboradores y analistas en diferentes partes del mundo.' # noqa
|
|
oldest_articles = 7
|
|
max_articles_per_feed = 100
|
|
language = u'es'
|
|
tags = u'información, contrainformación, información alternativa'
|
|
remove_empty_feeds = True
|
|
|
|
def get_extra_css(self):
|
|
if not self.extra_css:
|
|
br = self.get_browser()
|
|
self.extra_css = br.open_novisit(
|
|
'https://raw.githubusercontent.com/laMarciana/gutenweb/master/dist/gutenweb.css').read().replace('@charset "UTF-8";', '')
|
|
return self.extra_css
|
|
|
|
feeds = [
|
|
(u'Periodismo Humano', u'http://periodismohumano.com/feed'),
|
|
]
|
|
|
|
def get_cover_url(self):
|
|
return u'http://periodismohumano.com/files/2010/01/logoconslogan-300x211.jpg'
|