Debian Codegraph @

recipes/portafolio.recipe

raw
1 # -*- coding: utf-8 -*-
2
3 from calibre.web.feeds.news import BasicNewsRecipe
4
5
6 class AdvancedUserRecipe1311799898(BasicNewsRecipe):
7 title = 'Periódico Portafolio Colombia'
8 __author__ = 'BIGO-CAVA'
9 language = 'es_CO'
10 cover_url = 'http://www.portafolio.co/sites/portafolio.co/themes/portafolio_2011/logo.png'
11 remove_tags_before = dict(id='contenidoArt')
12 remove_tags_after = [dict(name='div', attrs={'class': 'articulo-mas'})]
13 keep_only_tags = [dict(name='div', id='contenidoArt')]
14 oldest_article = 2
15 max_articles_per_feed = 100
16 remove_javascript = True
17 no_stylesheets = True
18 use_embedded_content = False
19 remove_empty_feeds = True
20 masthead_url = 'http://www.portafolio.co/sites/portafolio.co/themes/portafolio_2011/logo.png'
21 publication_type = 'newspaper'
22
23 extra_css = '''
24 p{text-align: justify; font-size: 100%}
25 body{ text-align: left; font-size:100% }
26 h1{font-family: sans-serif; font-size:150%; font-weight:bold; text-align: justify; }
27 h3{font-family: sans-serif; font-size:100%; font-style: italic; text-align: justify; }
28 '''
29
30 feeds = [
31 ('Negocios', 'http://www.portafolio.co/negocios/feed'),
32 ('Economia', 'http://www.portafolio.co/economia/feed'),
33 ('Internacional', 'http://www.portafolio.co/internacional/feed'),
34 ('Indicadores', 'http://www.portafolio.co/indicadores/feed'),
35 ('Opinion', 'http://www.portafolio.co/opinion/feed'),
36 ('Finanzas Personales', 'http://www.portafolio.co/finanzas-personales/feed'),
37 ('Herramientas', 'http://www.portafolio.co/herramientas/feed'),
38 ]