#!/usr/bin/env python # vim:fileencoding=utf-8 from calibre.web.feeds.news import BasicNewsRecipe class GazetaUA(BasicNewsRecipe): title = 'Gazeta.ua' __author__ = 'bugmen00t' description = '\u0412\u0441\u0435\u0443\u043a\u0440\u0430\u0438\u043d\u0441\u043a\u0430\u044f \u043e\u043d-\u043b\u0430\u0439\u043d \u0433\u0430\u0437\u0435\u0442\u0430. \u041e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0432 \u0423\u043a\u0440\u0430\u0438\u043d\u0435 \u0438 \u0432 \u043c\u0438\u0440\u0435: \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430, \u0441\u043f\u043e\u0440\u0442, \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u0430.' # noqa: E501 publisher = '\u0418\u0437\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 "\u041d\u043e\u0432\u0430 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044f"' # noqa: E501 category = 'newspaper' cover_url = 'https://static2.gazeta.ua/img2/cache/preview/1064/1064219_w_450.jpg' language = 'ru_UK' no_stylesheets = False remove_javascript = False auto_cleanup = False remove_empty_feeds = True oldest_article = 3 max_articles_per_feed = 50 remove_tags_before = dict(name='article') remove_tags_after = dict(name='section', attrs={'class': 'article-content clearfix'}) remove_tags = [ dict(name='div', attrs={'class': 'mt5'}), dict(name='div', attrs={'class': 'interview-block'}), dict(name='p', attrs={'id': 'mce_0'}), dict(name='p', attrs={'id': 'mce_1'}), dict(name='p', attrs={'id': 'mce_2'}), dict(name='p', attrs={'id': 'mce_3'}), dict(name='p', attrs={'id': 'mce_4'}), dict(name='p', attrs={'id': 'mce_5'}), dict(name='p', attrs={'id': 'mce_6'}), dict(name='p', attrs={'id': 'mce_7'}), dict(name='p', attrs={'id': 'mce_8'}), dict(name='p', attrs={'id': 'mce_9'}), dict(name='p', attrs={'id': 'mce_10'}), dict(name='p', attrs={'id': 'mce_11'}), dict(name='p', attrs={'id': 'mce_12'}), dict(name='p', attrs={'id': 'mce_13'}), dict(name='p', attrs={'id': 'mce_14'}), dict(name='p', attrs={'id': 'mce_15'}), dict(name='p', attrs={'id': 'mce_16'}), dict(name='section', attrs={'class': 'w-marker-photo lg'}), ] feeds = [('Gazeta.ua', 'https://gazeta.ua/ru/rss')]