# -*- coding: utf-8 -*-

__license__	= 'GPLv3'

from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1311450855(BasicNewsRecipe):
    title          = u'Dagens Industri'
    __author__            = 'Jonas Svensson'
    description           = 'Economy news from Sweden'
    publisher             = 'DI'
    category              = 'news, politics, Sweden'
    oldest_article        = 2
    delay                 = 1
    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False
    encoding              = 'utf-8'
    language              = 'sv'

    feeds          = [(u'DI', u'http://di.se/rss')]

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

    remove_tags = [
                     dict(name='div',attrs={'class':'article-actions clear'})
                     ,dict(name='div',attrs={'class':'article-action-popup'})
                     ,dict(name='div',attrs={'class':'header'})
                     ,dict(name='div',attrs={'class':'content clear'})
                     ,dict(name='div',attrs={'id':'articleAdvertisementDiv'})
                     ,dict(name='ul',attrs={'class':'action-list'})
                  ]
