#!/usr/bin/env python2 # vim:fileencoding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from calibre.web.feeds.news import BasicNewsRecipe class TheInsider(BasicNewsRecipe): title = 'The Insider' cover_url = 'https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_nologo400/10331708/10331708-1604408816914-d03520fb339d5.jpg' # noqa: E501 __author__ = 'bugmen00t' description = 'Расследования Репортажи Аналитика' publisher = 'theins.ru' category = 'news' language = 'ru' no_stylesheets = True remove_javascript = True oldest_article = 300 max_articles_per_feed = 100 remove_tags_before = dict(name='div', attrs={'id': 'wrapper'}) remove_tags_after = dict(name='p', attrs={'style': ' color: #999999;'}) remove_tags = [ dict(name='div', attrs={'class': 'post-share'}), dict(name='div', attrs={'class': 'post-share fixed-likes'}), dict(name='div', attrs={'class': 'topads'}), dict(name='div', attrs={'class': 'pre-content-line'}), dict(name='div', attrs={'class': 'author-opinions'}), dict(name='div', attrs={'class': 'content-banner'}), dict(name='div', attrs={'id': 'sidebar'}) ] feeds = [ (u'\u041D\u043E\u0432\u043E\u0441\u0442\u0438', u'https://theins.ru/feed') ]