mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
El Comerico by Darko Miletic
This commit is contained in:
parent
b8b3efc5b8
commit
4018a811cb
BIN
resources/images/news/elcomercio.png
Normal file
BIN
resources/images/news/elcomercio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 764 B |
38
resources/recipes/elcomercio.recipe
Normal file
38
resources/recipes/elcomercio.recipe
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
|
'''
|
||||||
|
elcomercio.com
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class ElComercio(BasicNewsRecipe):
|
||||||
|
title = 'El Comercio '
|
||||||
|
__author__ = 'Darko Miletic'
|
||||||
|
description = "Gizmodo, the gadget guide. So much in love with shiny new toys, it's unnatural."
|
||||||
|
publisher = 'GRUPO EL COMERCIO C.A.'
|
||||||
|
category = 'news, Ecuador, politics'
|
||||||
|
oldest_article = 2
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
encoding = 'utf-8'
|
||||||
|
use_embedded_content = True
|
||||||
|
language = 'es'
|
||||||
|
masthead_url = 'http://ww1.elcomercio.com/nv_images/headers/EC/logo_new_08.gif'
|
||||||
|
extra_css = ' body{font-family: Arial,Verdana,sans-serif} img{margin-bottom: 1em} '
|
||||||
|
|
||||||
|
conversion_options = {
|
||||||
|
'comment' : description
|
||||||
|
, 'tags' : category
|
||||||
|
, 'publisher' : publisher
|
||||||
|
, 'language' : language
|
||||||
|
}
|
||||||
|
|
||||||
|
remove_attributes = ['width','height']
|
||||||
|
|
||||||
|
feeds = [(u'Articles', u'http://ww1.elcomercio.com/rss/titulares1.xml')]
|
||||||
|
|
||||||
|
def preprocess_html(self, soup):
|
||||||
|
return self.adeify_images(soup)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user