Debian Codegraph @

recipes/kompiutierra.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3
4 __license__ = 'GPL v3'
5 __copyright__ = '2015, lcd1232, [email protected]'
6 __author__ = 'lcd1232'
7
8 from calibre.web.feeds.news import BasicNewsRecipe
9
10
11 class Computerra(BasicNewsRecipe):
12 title = '\u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0440\u0430'
13 __author__ = 'lcd1232 (with fixes by bugmen00t)'
14 description = 'Компьютерра: все новости про компьютеры, железо, новые технологии, информационные технологии'
15 cover_url = 'https://yt3.ggpht.com/ytc/AKedOLRCMA71rKaP4HfL2W26A-VdvsBj9BcOo7S6poTR=s900-c-k-c0x00ffffff-no-rj'
16 language = 'ru'
17 oldest_article = 100
18 max_articles_per_feed = 50
19 use_embedded_content = False
20 remove_javascript = True
21 no_stylesheets = False
22 conversion_options = {'linearize_tables': True}
23 simultaneous_downloads = 5
24
25 remove_tags_before = dict(name='article')
26
27 remove_tags_after = dict(name='article')
28
29 remove_tags = [
30 dict(name='ul', attrs={'class': 'breadcrumbs'}),
31 dict(name='div', attrs={'class': 'post-info__likes post-info-likes'}),
32 dict(name='div', attrs={'class': 'cta-row'}),
33 dict(name='div', attrs={'class': 'post-info__img'}),
34 dict(name='div', attrs={'class': 'post-footer__wrap'}),
35 dict(name='div', attrs={'class': 'widget featured-posts'}),
36 ]
37
38 feeds = [('\u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0440\u0430', 'https://www.computerra.ru/feed/')]