Debian Codegraph @

recipes/the_insider.recipe

raw
1 #!/usr/bin/env python2
2 # vim:fileencoding=utf-8
3 from __future__ import absolute_import, division, print_function, unicode_literals
4
5 from calibre.web.feeds.news import BasicNewsRecipe
6
7
8 class TheInsider(BasicNewsRecipe):
9 title = 'The Insider'
10 cover_url = (
11 'https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_nologo400/10331708/10331708-1604408816914-d03520fb339d5.jpg' # noqa: E501
12 )
13 __author__ = 'bugmen00t'
14 description = 'Расследования Репортажи Аналитика'
15 publisher = 'theins.ru'
16 category = 'news'
17 language = 'ru'
18 no_stylesheets = True
19 remove_javascript = True
20 oldest_article = 300
21 max_articles_per_feed = 100
22
23 remove_tags_before = dict(name='div', attrs={'id': 'wrapper'})
24 remove_tags_after = dict(name='p', attrs={'style': ' color: #999999;'})
25 remove_tags = [
26 dict(name='div', attrs={'class': 'post-share'}),
27 dict(name='div', attrs={'class': 'post-share fixed-likes'}),
28 dict(name='div', attrs={'class': 'topads'}),
29 dict(name='div', attrs={'class': 'pre-content-line'}),
30 dict(name='div', attrs={'class': 'author-opinions'}),
31 dict(name='div', attrs={'class': 'content-banner'}),
32 dict(name='div', attrs={'id': 'sidebar'}),
33 ]
34
35 feeds = [('\u041d\u043e\u0432\u043e\u0441\u0442\u0438', 'https://theins.ru/feed')]