
__license__ = 'GPL v3'
__author__ = 'teepel <teepel44@gmail.com>, Artur Stachecki <artur.stachecki@gmail.com>'

'''
korwin-mikke.pl/blog
'''

from calibre.web.feeds.news import BasicNewsRecipe


class km_blog(BasicNewsRecipe):
    title = u'Korwin-Mikke Blog'
    __author__ = 'teepel <teepel44@gmail.com>'
    language = 'pl'
    description = 'Wiadomości z bloga korwin-mikke.pl/blog'
    INDEX = 'https://korwin-mikke.pl/blog'
    remove_empty_feeds = True
    oldest_article = 7
    max_articles_per_feed = 100
    remove_javascript = True
    no_stylesheets = True
    remove_empty_feeds = True

    feeds = [(u'blog', u'https://korwin-mikke.pl/blog/rss')]

    keep_only_tags = [dict(name='div', attrs={'class': ['header-standard header-classic single-header', 'post-image', 'post-entry blockquote-style-1']})]

    remove_tags = [dict(name='div', attrs={'class': 'penci-hide-tagupdated'})]
