mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update El Universal (VE)
Fixes #1229156 [Updated recipe for El Universal Venezuela](https://bugs.launchpad.net/calibre/+bug/1229156)
This commit is contained in:
parent
b07fc5fecb
commit
f34cb774be
@ -1,27 +1,28 @@
|
|||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2010-2011, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2010-2013, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
www.eluniversal.com
|
www.eluniversal.com
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from calibre import strftime
|
|
||||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||||
|
|
||||||
class ElUniversal(BasicNewsRecipe):
|
class ElUniversal(BasicNewsRecipe):
|
||||||
title = 'El Universal'
|
title = 'El Universal'
|
||||||
__author__ = 'Darko Miletic'
|
__author__ = 'Darko Miletic'
|
||||||
description = 'Noticias de Venezuela'
|
description = 'Noticias de Venezuela y el mundo. Avances informativos de ultimo minuto. Incluye secciones de politica, deportes, economia y mas.'
|
||||||
oldest_article = 2
|
oldest_article = 2
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
encoding = 'cp1252'
|
encoding = 'cp1252'
|
||||||
publisher = 'El Universal'
|
publisher = 'El Universal'
|
||||||
category = 'news, Caracas, Venezuela, world'
|
category = 'news, Caracas, Venezuela, world'
|
||||||
language = 'es_VE'
|
language = 'es_VE'
|
||||||
publication_type = 'newspaper'
|
publication_type = 'newspaper'
|
||||||
cover_url = strftime('http://static.eluniversal.com/%Y/%m/%d/portada.jpg')
|
masthead_url = 'http://cdn.eluniversal.com/images/eu4/back/logo-eluniversal.gif'
|
||||||
|
#cover_url = strftime('http://cdn.eluniversal.com/%Y/%m/%d/portada.jpg')
|
||||||
|
cover_url = 'http://images.eluniversal.com//pdf/primeraPlana.pdf'
|
||||||
extra_css = """
|
extra_css = """
|
||||||
.txt60{font-family: Tahoma,Geneva,sans-serif; font-size: small}
|
.txt60{font-family: Tahoma,Geneva,sans-serif; font-size: small}
|
||||||
.txt29{font-family: Tahoma,Geneva,sans-serif; font-size: small; color: gray}
|
.txt29{font-family: Tahoma,Geneva,sans-serif; font-size: small; color: gray}
|
||||||
@ -30,10 +31,10 @@ class ElUniversal(BasicNewsRecipe):
|
|||||||
body{font-family: Verdana,Arial,Helvetica,sans-serif}
|
body{font-family: Verdana,Arial,Helvetica,sans-serif}
|
||||||
"""
|
"""
|
||||||
conversion_options = {
|
conversion_options = {
|
||||||
'comments' : description
|
'comments' : description
|
||||||
,'tags' : category
|
,'tags' : category
|
||||||
,'language' : language
|
,'language' : language
|
||||||
,'publisher' : publisher
|
,'publisher' : publisher
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_tags_before=dict(attrs={'class':'header-print MB10'})
|
remove_tags_before=dict(attrs={'class':'header-print MB10'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user