#!/usr/bin/env python # vim:fileencoding=utf-8 from calibre.web.feeds.news import BasicNewsRecipe class BBC(BasicNewsRecipe): title = 'BBC Ukrainian' description = 'BBC News \u0423\u043a\u0440\u0430\u0457\u043d\u0430' __author__ = 'bugmen00t' publication_type = 'newspaper' oldest_article = 14 max_articles_per_feed = 50 language = 'uk' cover_url = 'https://news.files.bbci.co.uk/ws/img/logos/og/ukrainian.png' auto_cleanup = True 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\u0438\u043d\u0438 BBC', 'https://feeds.bbci.co.uk/ukrainian/rss.xml')]