| 1 |
__copyright__ = '2015, Darko Miletic <darko.miletic at gmail.com>' |
| 2 |
''' |
| 3 |
www.lapoliticaonline.com |
| 4 |
''' |
| 5 |
|
| 6 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 7 |
|
| 8 |
|
| 9 |
class LaPoliticaOnline_AR(BasicNewsRecipe): |
| 10 |
title = 'La Politica Online' |
| 11 |
__author__ = 'Darko Miletic' |
| 12 |
description = 'Informacion actualizada las 24 horas, con noticias de Argentina y del mundo' |
| 13 |
publisher = 'La Politica Online SA' |
| 14 |
category = 'news, politics, Argentina' |
| 15 |
oldest_article = 1 |
| 16 |
max_articles_per_feed = 100 |
| 17 |
use_embedded_content = False |
| 18 |
auto_cleanup = False |
| 19 |
no_stylesheets = True |
| 20 |
encoding = 'latin1' |
| 21 |
language = 'es_AR' |
| 22 |
publication_type = 'newspaper' |
| 23 |
remove_empty_feeds = True |
| 24 |
masthead_url = 'http://www.lapoliticaonline.com/0/img/header/logo.gif' |
| 25 |
extra_css = ''' |
| 26 |
.title,.vsmcontent{font-family: Georgia,"Times New Roman",Times,serif} |
| 27 |
body{font-family: Arial,Helvetica,sans-serif} |
| 28 |
.galleryfooter{font-size: small; color: gainsboro;} |
| 29 |
img{display: block} |
| 30 |
.title{font-size: x-large; font-weight: bold; line-height: 2em;} |
| 31 |
''' |
| 32 |
|
| 33 |
conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language} |
| 34 |
|
| 35 |
remove_tags = [ |
| 36 |
dict(name=['iframe', 'embed', 'object', 'meta', 'link', 'button']), |
| 37 |
dict(attrs={'class': ['share-related', 'controls oneimage', 'toolbar', 'itemheader']}), |
| 38 |
] |
| 39 |
|
| 40 |
remove_tags_before = dict(name='div', attrs={'class': 'title'}) |
| 41 |
remove_tags_after = dict(attrs={'id': 'vsmcontent'}) |
| 42 |
|
| 43 |
feeds = [ |
| 44 |
('Politica', 'http://www.lapoliticaonline.com/files/rss/politica.xml'), |
| 45 |
('Economia', 'http://www.lapoliticaonline.com/files/rss/economia.xml'), |
| 46 |
('Ciudad', 'http://www.lapoliticaonline.com/files/rss/ciudad.xml'), |
| 47 |
('Provincia', 'http://www.lapoliticaonline.com/files/rss/provincia.xml'), |
| 48 |
('Conurbano', 'http://www.lapoliticaonline.com/files/rss/conurbano.xml'), |
| 49 |
('Mendoza', 'http://www.lapoliticaonline.com/files/rss/mendoza.xml'), |
| 50 |
('Santa Fe', 'http://www.lapoliticaonline.com/files/rss/santafe.xml'), |
| 51 |
('Transporte', 'http://www.lapoliticaonline.com/files/rss/transporte.xml'), |
| 52 |
('Energia', 'http://www.lapoliticaonline.com/files/rss/energĂa.xml'), |
| 53 |
('Judiciales', 'http://www.lapoliticaonline.com/files/rss/judiciales.xml'), |
| 54 |
] |