#!/usr/bin/env  python

__license__   = 'GPL v3'
__copyright__ = u'2010, Tomasz Dlugosz <tomek3d@gmail.com>'
'''
fakty.interia.pl
'''

from calibre.web.feeds.news import BasicNewsRecipe

class InteriaFakty(BasicNewsRecipe):
    title          = u'Interia.pl - Fakty'
    description    = u'Fakty ze strony interia.pl'
    language = 'pl'
    oldest_article = 7
    __author__ = u'Tomasz D\u0142ugosz'
    simultaneous_downloads = 2
    no_stylesheets = True
    remove_javascript = True
    max_articles_per_feed = 100

    feeds          = [(u'Kraj', u'http://kanaly.rss.interia.pl/kraj.xml'),
                      (u'\u015awiat', u'http://kanaly.rss.interia.pl/swiat.xml'), 
                      (u'Wiadomo\u015bci dnia', u'http://kanaly.rss.interia.pl/fakty.xml'), 
                      (u'Przegl\u0105d prasy', u'http://kanaly.rss.interia.pl/przeglad_prasy.xml'), 
                      (u'Wywiady', u'http://kanaly.rss.interia.pl/wywiady.xml'), 
                      (u'Ciekawostki', u'http://kanaly.rss.interia.pl/ciekawostki.xml')]

    keep_only_tags = [dict(name='div', attrs={'id':'article'})]

    remove_tags = [
        dict(name='div', attrs={'class':'box fontSizeSwitch'}),
        dict(name='div', attrs={'class':'clear'}),
        dict(name='div', attrs={'class':'embed embedLeft articleEmbedArticleList articleEmbedArticleListTitle'}),
        dict(name='span', attrs={'class':'keywords'})]

    extra_css = '''
	    h2 { font-size: 1.2em; }
	'''
