Debian Codegraph @

recipes/attac_es.recipe

raw
1 # vim:fileencoding=utf-8
2 from __future__ import unicode_literals
3
4 from calibre.web.feeds.news import BasicNewsRecipe
5
6
7 class AttacEspanaRecipe(BasicNewsRecipe):
8 __author__ = 'Marc Busqué <[email protected]>'
9 __url__ = 'http://www.lamarciana.com'
10 __version__ = '1.0.2'
11 __license__ = 'GPL v3'
12 __copyright__ = '2012, Marc Busqué <[email protected]>'
13 title = 'attac.es'
14 description = 'La Asociación por la Tasación de las Transacciones Financieras y por la Ayuda a los Ciudadanos (ATTAC) es un movimiento internacional altermundialista que promueve el control democrático de los mercados financieros y las instituciones encargadas de su control mediante la reflexión política y la movilización social.' # noqa: E501
15 url = 'http://www.attac.es'
16 language = 'es'
17 tags = 'contrainformación, información alternativa'
18 oldest_article = 7
19 remove_empty_feeds = True
20 no_stylesheets = True
21
22 def get_extra_css(self):
23 if not self.extra_css:
24 br = self.get_browser()
25 self.extra_css = (
26 br.open_novisit('https://raw.githubusercontent.com/laMarciana/gutenweb/master/dist/gutenweb.css').read().replace('@charset "UTF-8";', '')
27 )
28 return self.extra_css
29
30 cover_url = 'http://www.attac.es/wp-content/themes/attacweb/images/attaces.jpg'
31
32 feeds = [
33 ('Attac', 'http://www.attac.es/feed'),
34 ]