#!/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: E501 publisher = 'The New Times' category = 'newspaper' cover_url = '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/')]