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

from calibre.web.feeds.news import BasicNewsRecipe


class Cedar(BasicNewsRecipe):
    title = '\u041a\u0435\u0434\u0440'
    description = '\u041d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0435 \u043c\u0435\u0434\u0438\u0430 \u043e\u0431 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0439 \u0441\u0440\u0435\u0434\u0435'  # noqa: E501
    __author__ = 'bugmen00t'
    publication_type = 'blog'
    oldest_article = 30
    max_articles_per_feed = 20
    language = 'ru'
    cover_url = 'https://kedr.media/wp-content/themes/kedrmedia_gutenberg/assets/img/logo-bg.svg'
    auto_cleanup = True
    no_stylesheets = False

    remove_tags_before = dict(name='div', attrs={'class': 'post-header'})

    remove_tags_after = dict(name='div', attrs={'class': 'post-content'})

    feeds = [
        ('\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f', 'https://kedr.media/category/research/feed'),
        ('\u0418\u0441\u0442\u043e\u0440\u0438\u0438', 'https://kedr.media/category/stories/feed'),
        ('\u041c\u043d\u0435\u043d\u0438\u044f', 'https://kedr.media/category/opinions/feed'),
        ('\u0418\u043d\u0442\u0435\u0440\u0432\u044c\u044e', 'https://kedr.media/category/interview/feed'),
        ('\u041e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u043c', 'https://kedr.media/category/explain/feed'),
    ]
