Debian Codegraph @

recipes/navalny.recipe

raw
1 #!/usr/bin/env python
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 AdvancedUserRecipe1467716191(BasicNewsRecipe):
9 title = '\u0410\u043b\u0435\u043a\u0441\u0435\u0439 \u041d\u0430\u0432\u0430\u043b\u044c\u043d\u044b\u0439'
10 __author__ = 'bugmen00t'
11 description = '\u0411\u043b\u043e\u0433 \u0410\u043b\u0435\u043a\u0441\u0435\u044f \u041d\u0430\u0432\u0430\u043b\u044c\u043d\u043e\u0433\u043e. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0431\u0438\u0442\u0432\u0430 \u043c\u0435\u0436\u0434\u0443 \u0434\u043e\u0431\u0440\u043e\u043c \u0438 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u0438\u0442\u0435\u0442\u043e\u043c' # noqa: E501
12 publisher = 'navalny.com'
13 category = 'news'
14 cover_url = 'https://st.navalny.com/static/images/present.dd46b90f0221.png'
15 language = 'ru'
16 no_stylesheets = False
17 remove_javascript = True
18 auto_cleanup = False
19
20 oldest_article = 200
21 max_articles_per_feed = 100
22
23 feeds = [
24 ('\u0410\u043b\u0435\u043a\u0441\u0435\u0439 \u041d\u0430\u0432\u0430\u043b\u044c\u043d\u044b\u0439', 'https://navalny.com/blog/post.rss'),
25 ]
26
27 remove_tags_before = dict(name='div', attrs={'class': 'b-content'})
28 remove_tags_after = dict(name='div', attrs={'class': 'b-post__content'})
29 remove_tags = [dict(name='div', attrs={'class': 'b-post__bottom'}), dict(name='div', attrs={'id': 'c'})]