mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
Fixes #1499818 [Updated recipe for Infobae](https://bugs.launchpad.net/calibre/+bug/1499818)
53 lines
2.5 KiB
Plaintext
53 lines
2.5 KiB
Plaintext
__license__ = 'GPL v3'
|
|
__copyright__ = '2008-2015, Darko Miletic <darko.miletic at gmail.com>'
|
|
'''
|
|
infobae.com
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class Infobae(BasicNewsRecipe):
|
|
title = 'Infobae.com'
|
|
__author__ = 'Darko Miletic and Sujata Raman'
|
|
description = 'Infobae.com es el sitio de noticias con mayor actualizacion de Latinoamérica. Noticias actualizadas las 24 horas, los 365 días del año.'
|
|
publisher = 'Infobae.com'
|
|
category = 'news, politics, Argentina'
|
|
oldest_article = 1
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
auto_cleanup = False
|
|
language = 'es_AR'
|
|
encoding = 'utf8'
|
|
remove_empty_feeds = True
|
|
extra_css = '''
|
|
body{font-family: Arial,Helvetica,sans-serif}
|
|
img{display: block}
|
|
.categoria{font-size: small; text-transform: uppercase}
|
|
'''
|
|
|
|
conversion_options = {
|
|
'comment' : description
|
|
, 'tags' : category
|
|
, 'publisher' : publisher
|
|
, 'language' : language
|
|
}
|
|
|
|
remove_tags_before = dict(name='h1', attrs={'class':'entry-title'})
|
|
remove_tags_after = dict(name='div', attrs={'class':'narrowcontent'})
|
|
remove_tags = [
|
|
dict(name=['base','meta','link','iframe','object','embed','ins'])
|
|
,dict(attrs={'class':['social-hori clearfix','narrowcontent','embed_cont type_freetext']})
|
|
,dict(attrs={'id':'captcha-modal'})
|
|
]
|
|
|
|
feeds = [
|
|
(u'Ahora' , u'http://cdn02.ib.infobae.com/adjuntos/162/rss/Infobae.xml')
|
|
,(u'Economia' , u'http://cdn02.ib.infobae.com/adjuntos/162/rss/economia.xml')
|
|
,(u'Cultura' , u'http://cdn02.ib.infobae.com/adjuntos/162/rss/Cultura.xml')
|
|
,(u'Finanzas' , u'http://cdn02.ib.infobae.com/adjuntos/162/rss/finanzas.xml')
|
|
,(u'Sociedad' , u'http://cdn02.ib.infobae.com/adjuntos/162/rss/sociedad.xml')
|
|
,(u'Politica' , u'http://cdn02.ib.infobae.com/adjuntos/162/rss/politica.xml')
|
|
,(u'Deportes' , u'http://cdn02.ib.infobae.com/adjuntos/162/rss/deportes.xml')
|
|
]
|