#!/usr/bin/env  python2
__license__ = 'GPL v3'
__author__ = 'Lorenzo Vigentini, Gabriele Marini'
__copyright__ = '2009, Lorenzo Vigentini <l.vigentini at gmail.com>'
__version__ = 'v1.02'
__date__ = '10, January 2010'
__description__ = 'Italian weekly magazine'

'''espresso.repubblica.it'''

from calibre.web.feeds.news import BasicNewsRecipe


class Espresso(BasicNewsRecipe):
    __author__ = 'Lorenzo Vigentini, Gabriele Marini, Krittika Goyal'
    description = 'Italian weekly magazine'

    cover_url = 'http://espresso.repubblica.it/images/logo_espresso.gif'
    title = 'L\'Espresso '
    publisher = 'Gruppo editoriale L\'Espresso'
    category = 'News, politics, culture, economy, general interest'

    language = 'it'
#    encoding       = 'cp1252'
    timefmt = '[%a, %d %b, %Y]'

    oldest_article = 16
    max_articles_per_feed = 100
    use_embedded_content = False

    no_stylesheets = True
    auto_cleanup = True

    feeds = [
        (u'Homepage', u'http://kpm.data.kataweb.it/kpm3eolx/rss/home'),
        (u'Local', u'http://kpm.data.kataweb.it/kpm3eolx/rss/local'),
        (u'Style & Design',
         u'http://kpm.data.kataweb.it/kpm3eolx/rss/style_design'),
        (u'Opinioni', u'http://kpm.data.kataweb.it/kpm3eolx/rss/opinioni'),
        (u'Rubriche', u'http://kpm.data.kataweb.it/kpm3eolx/rss/rubriche'),
        (u'Limes', u'http://temi.repubblica.it/limes/feed/'),
        (u'Chiesa: HomePage',
         u'http://data.kataweb.it/rss/chiesa/homepage/it'),
        (u'Chiesa: Speciali e Focus',
         u'http://data.kataweb.it/rss/chiesa/speciali_e_focus/it')
    ]
