#!/usr/bin/env python
# vim:fileencoding=utf-8

from calibre.web.feeds.news import BasicNewsRecipe


class Arbetaren_SE(BasicNewsRecipe):
    title = u'Arbetaren'
    __author__ = 'Jonatan Nyberg'
    description = u'Nyheter fr\xe5n Arbetaren'
    publisher = 'Arbetaren'
    category = 'news, politics, socialism, Sweden'
    oldest_article = 7
    delay = 1
    max_articles_per_feed = 100
    no_stylesheets = True
    use_embedded_content = False
    encoding = 'utf-8'
    language = 'sv'
    auto_cleanup   = True
    auto_cleanup_keep = '//div[@class="thumbnail"]'
    auto_cleanup_keep = '//div[@id="article-image"]'
    auto_cleanup_keep = '//div[@id="article-image"]|//span[@class="important"]'

    feeds = [(u'Nyheter', u'https://www.arbetaren.se/feed')]
