Debian Codegraph @

recipes/newtimes.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 NewTimes(BasicNewsRecipe):
8 title = 'The New Times'
9 __author__ = 'bugmen00t'
10 description = ' \u0415\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e-\u043f\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0436\u0443\u0440\u043d\u0430\u043b' # noqa: E501
11 publisher = 'The New Times'
12 category = 'newspaper'
13 cover_url = 'https://newtimes.ru/img/ogimage.png'
14 language = 'ru'
15 no_stylesheets = False
16 remove_javascript = False
17 auto_cleanup = False
18 oldest_article = 14
19 max_articles_per_feed = 150
20
21 remove_tags_before = dict(name='h1')
22
23 remove_tags_after = dict(name='div', attrs={'id': 'full'})
24
25 remove_tags = [
26 # dict(name='div', attrs={'class': 'image-box image-box_center'}),
27 ]
28
29 feeds = [('\u0421\u0442\u0430\u0442\u044c\u0438', 'https://newtimes.ru/rss/')]