Debian Codegraph @

recipes/geekcity.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 GeekCity(BasicNewsRecipe):
8 title = 'GeekCity'
9 description = '\u041f\u043e\u0440\u0442\u0430\u043b \u043e \u043a\u043e\u043c\u0438\u043a\u0441\u0430\u0445, \u043a\u0438\u043d\u043e, \u0441\u0435\u0440\u0438\u0430\u043b\u0430\u0445, \u0438\u0433\u0440\u0430\u0445, sci-fi \u0438 \u043c\u043d\u043e\u0433\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u043c. \u0417\u0434\u0435\u0441\u044c \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0441\u0432\u0435\u0436\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043e \u0441\u0430\u043c\u044b\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445 \u0432 \u043c\u0438\u0440\u0435 \u0433\u0438\u043a\u043e\u0432, \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u0437\u043e\u0440\u044b, \u0433\u0430\u0439\u0434\u044b, \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.' # noqa: E501
10 __author__ = 'bugmen00t'
11 publisher = 'GeekCity.ru'
12 publication_type = 'blog'
13 oldest_article = 7
14 max_articles_per_feed = 10
15 language = 'ru'
16 cover_url = 'https://geekcity.ru/wp-content/uploads/2021/03/og.jpg'
17 auto_cleanup = False
18 no_stylesheets = False
19
20 remove_tags_before = dict(name='article')
21
22 remove_tags_after = dict(name='article')
23
24 remove_tags = [
25 dict(name='div', attrs={'class': 'term-badges floated'}),
26 dict(name='div', attrs={'class': 'post-meta single-post-meta'}),
27 dict(name='div', attrs={'class': 'post-share single-post-share top-share clearfix style-1'}),
28 dict(name='div', attrs={'class': 'post-share single-post-share bottom-share clearfix style-1'}),
29 dict(name='div', attrs={'class': 'entry-terms post-tags clearfix'}),
30 ]
31
32 feeds = [
33 ('\u0412\u0441\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b', 'https://geekcity.ru/feed/'),
34 (
35 '\u0411\u0435\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438',
36 'https://geekcity.ru/category/%D0%B1%D0%B5%D0%B7-%D1%80%D1%83%D0%B1%D1%80%D0%B8%D0%BA%D0%B8/feed/',
37 ),
38 ('\u0421\u0430\u0439\u0442', 'https://geekcity.ru/category/site/'),
39 ('\u0424\u0438\u043b\u044c\u043c\u044b', 'https://geekcity.ru/category/moviespod/feed/'),
40 ('\u0421\u0435\u0440\u0438\u0430\u043b\u044b', 'https://geekcity.ru/category/tvshow/feed/'),
41 ('\u041a\u043e\u043c\u0438\u043a\u0441\u044b', 'https://geekcity.ru/category/comics-2/feed/'),
42 ('\u0418\u0433\u0440\u044b', 'https://geekcity.ru/category/games/feed/'),
43 ('\u0422\u0435\u0445\u043d\u043e', 'https://geekcity.ru/category/tech/feed/'),
44 ('\u0428\u043c\u043e\u0442', 'https://geekcity.ru/category/shopping/feed/'),
45 ('\u0413\u0430\u0439\u0434\u044b', 'https://geekcity.ru/category/guides/feed/'),
46 ]