Debian Codegraph @

recipes/diario_ibiza.recipe

raw
1 __license__ = 'GPL v3'
2 __author__ = 'Joan Tur, based on El Pais version by Jordi Balcells & elargentino.com version by Darko Miletic'
3 description = 'Principal periodico de las islas Pitiusas, Ibiza y Formentera (Espanya) - v1.06 (29/04/2011)'
4 __docformat__ = 'restructuredtext en'
5
6 '''
7 diariodeibiza.es
8 '''
9
10 from calibre.web.feeds.news import BasicNewsRecipe
11
12
13 class DiarioDeIbiza(BasicNewsRecipe):
14 __author__ = 'Joan Tur, cullet'
15 description = 'Principal periodico de las islas Pitiusas, Ibiza y Formentera (Espanya) - v1.06 (29/04/2011)'
16
17 cover_url = 'http://estaticos01.diariodeibiza.es//elementosWeb/mediaweb/images/logo.jpg'
18 title = 'Diario de Ibiza digital'
19 publisher = 'Editorial Prensa Iberica'
20 category = 'News, politics, culture, economy, general interest'
21 language = 'es'
22
23 encoding = 'iso-8859-1'
24
25 timefmt = '[%a, %d %b, %Y]'
26
27 oldest_article = 2
28 max_articles_per_feed = 20
29
30 use_embedded_content = False
31 recursion = 5
32
33 remove_javascript = True
34 no_stylesheets = True
35
36 keep_only_tags = [
37 dict(name='div', attrs={'class': ['noticia_titular', 'epigrafe', 'subtitulo', 'actualizada', 'noticia_fecha', 'noticia_texto']}),
38 dict(name='font', attrs={'class': ['actualizada']}),
39 ]
40
41 feeds = [
42 ('Portada de Ibiza', 'http://www.diariodeibiza.es/elementosInt/rss/1'),
43 ('Pitiuses i Balears', 'http://www.diariodeibiza.es/elementosInt/rss/2'),
44 ('Opini\xf3n', 'http://www.diariodeibiza.es/elementosInt/rss/3'),
45 ('Nacional', 'http://www.diariodeibiza.es/elementosInt/rss/4'),
46 ('Internacional', 'http://www.diariodeibiza.es/elementosInt/rss/5'),
47 ('Econom\xeda', 'http://www.diariodeibiza.es/elementosInt/rss/6'),
48 ('Deportes', 'http://www.diariodeibiza.es/elementosInt/rss/7'),
49 ('Sociedad', 'http://www.diariodeibiza.es/elementosInt/rss/8'),
50 ('Ciencia', 'http://www.diariodeibiza.es/elementosInt/rss/11'),
51 ('Tecnolog\xeda', 'http://www.diariodeibiza.es/elementosInt/rss/12'),
52 ('Gente', 'http://www.diariodeibiza.es/elementosInt/rss/13'),
53 ('Sucesos', 'http://www.diariodeibiza.es/elementosInt/rss/15'),
54 ('Cultura', 'http://www.diariodeibiza.es/elementosInt/rss/16Piti'),
55 ]