home *** CD-ROM | disk | FTP | other *** search
-
- __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_EC'
- 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)
-
-