Debian Codegraph @

recipes/vedomosti.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3
4 from calibre.web.feeds.news import BasicNewsRecipe
5
6
7 class Vedomosti(BasicNewsRecipe):
8 title = '\u0412\u0435\u0434\u043e\u043c\u043e\u0441\u0442\u0438'
9 __author__ = 'bugmen00t'
10 description = (
11 '\u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0434\u0435\u043b\u043e\u0432\u0430\u044f \u0433\u0430\u0437\u0435\u0442\u0430.' # noqa: E501
12 )
13 publisher = '\u0410\u041e \u00ab\u0411\u0438\u0437\u043d\u0435\u0441 \u041d\u044c\u044e\u0441 \u041c\u0435\u0434\u0438\u0430\u00bb'
14 category = 'newspaper'
15 cover_url = 'https://id.vedomosti.ru/assets/chopick-13077eee55066e639f3a037834ecf11279d3f402e9f5cac7162d13183dfd9d20.jpg'
16 language = 'ru'
17 no_stylesheets = True
18 remove_javascript = False
19 auto_cleanup = False
20 oldest_article = 7
21 max_articles_per_feed = 200
22
23 remove_tags_before = dict(name='header', attrs={'class': 'article__header'})
24
25 remove_tags_after = dict(name='div', attrs={'class': 'article__main'})
26
27 remove_tags = [
28 dict(name='div', attrs={'class': 'article__tools'}),
29 dict(name='div', attrs={'class': 'box-inset-link box-inset-link--card'}),
30 dict(name='div', attrs={'class': 'box-inset-link box-inset-link--card box-inset-link--link'}),
31 ]
32
33 feeds = [('\u041d\u043e\u0432\u043e\u0441\u0442\u0438', 'https://www.vedomosti.ru/rss/news')]