View Single Post
Old 04-30-2012, 06:25 AM   #4
atordo
Connoisseur
atordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to behold
 
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
Thanks Kovid, that did it. Below is a working version of the recipe in case someone else is interested in the site:

Code:
from calibre.web.feeds.news import BasicNewsRecipe

class ElMundoTodayRecipe(BasicNewsRecipe):
    title = 'El Mundo Today'
    description = u'La actualidad del maņana'
    category = 'Noticias, humor'
    cover_url = 'http://www.elmundotoday.com/wp-content/themes/EarthlyTouch/images/logo.png'
    oldest_article = 30
    max_articles_per_feed = 30
    auto_cleanup = True
    no_stylesheets = True
    language = 'es_ES'
    use_embedded_content  = True

    feeds = [('El Mundo Today', 'http://www.elmundotoday.com/feed/')]

    def get_broser(self):
        br = BasicNewsRecipe.get_browser(self)
        br.set_handle_gzip(True)
        return br
atordo is offline   Reply With Quote