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

from calibre.web.feeds.news import BasicNewsRecipe


class Arbetaren_SE(BasicNewsRecipe):
    title = 'Arbetaren'
    __author__ = 'Jonatan Nyberg'
    description = '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"]|//div[@id="article-image"]|//span[@class="important"]'

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