from calibre.web.feeds.news import BasicNewsRecipe


class Kresy(BasicNewsRecipe):
    title = 'Kresy'
    __author__ = 'fenuks'
    description = 'portal społeczności kresowej'
    language = 'pl'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    keep_only_tags = [dict(name='div', attrs={'class': ['big-slider big-preview single-big', 'entry-content-wrapper clearfix standard-content']})]
    remove_tags = [dict(attrs={'class': ['entry-footer', 'kresy_donate']})]
    feeds = [('Wszystkie', 'https://www.kresy.pl/rss')]
