#!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
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
    publisher = 'navalny.com'
    category = 'news'
    cover_url = u'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'})]
