#!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import absolute_import, division, print_function, unicode_literals

from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1467716191(BasicNewsRecipe):
    title = '\u0410\u043b\u0435\u043a\u0441\u0435\u0439 \u041d\u0430\u0432\u0430\u043b\u044c\u043d\u044b\u0439'
    __author__ = 'bugmen00t'
    description = '\u0411\u043b\u043e\u0433 \u0410\u043b\u0435\u043a\u0441\u0435\u044f \u041d\u0430\u0432\u0430\u043b\u044c\u043d\u043e\u0433\u043e. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0431\u0438\u0442\u0432\u0430 \u043c\u0435\u0436\u0434\u0443 \u0434\u043e\u0431\u0440\u043e\u043c \u0438 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u0438\u0442\u0435\u0442\u043e\u043c'  # noqa: E501
    publisher = 'navalny.com'
    category = 'news'
    cover_url = 'https://st.navalny.com/static/images/present.dd46b90f0221.png'
    language = 'ru'
    no_stylesheets = False
    remove_javascript = True
    auto_cleanup = False

    oldest_article = 200
    max_articles_per_feed = 100

    feeds = [
        ('\u0410\u043b\u0435\u043a\u0441\u0435\u0439 \u041d\u0430\u0432\u0430\u043b\u044c\u043d\u044b\u0439', 'https://navalny.com/blog/post.rss'),
    ]

    remove_tags_before = dict(name='div', attrs={'class': 'b-content'})
    remove_tags_after = dict(name='div', attrs={'class': 'b-post__content'})
    remove_tags = [dict(name='div', attrs={'class': 'b-post__bottom'}), dict(name='div', attrs={'id': 'c'})]
