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

from calibre.web.feeds.news import BasicNewsRecipe


class NewTimes(BasicNewsRecipe):
    title = 'The New Times'
    __author__ = 'bugmen00t'
    description = ' \u0415\u0436\u0435\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E-\u043F\u043E\u043B\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0436\u0443\u0440\u043D\u0430\u043B'  # noqa
    publisher = 'The New Times'
    category = 'newspaper'
    cover_url = u'https://newtimes.ru/img/ogimage.png'
    language = 'ru'
    no_stylesheets = False
    remove_javascript = False
    auto_cleanup = False
    oldest_article = 14
    max_articles_per_feed = 150

    remove_tags_before = dict(name='h1')

    remove_tags_after = dict(name='div', attrs={'id': 'full'})

    remove_tags = [

        #        dict(name='div', attrs={'class': 'image-box image-box_center'}),
    ]

    feeds = [('\u0421\u0442\u0430\u0442\u044C\u0438', 'https://newtimes.ru/rss/')]
