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

from calibre.web.feeds.news import BasicNewsRecipe


class BBC(BasicNewsRecipe):
    title = 'BBC Russian'
    description = '\u0420\u0443\u0441\u0441\u043a\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 BBC'
    __author__ = 'bugmen00t'
    publication_type = 'newspaper'
    oldest_article = 14
    max_articles_per_feed = 50
    language = 'ru'
    cover_url = 'https://news.files.bbci.co.uk/ws/img/logos/og/russian.png'
    auto_cleanup = False
    no_stylesheets = True

    remove_tags_before = dict(name='h1')

    remove_tags_after = dict(name='main', attrs={'aria-hidden': 'true'})

    remove_tags = [dict(name='section', attrs={'role': 'region'}), dict(name='footer'), dict(name='aside')]

    feeds = [('\u041d\u043e\u0432\u043e\u0441\u0442\u0438 BBC', 'https://feeds.bbci.co.uk/russian/rss.xml')]
