Debian Codegraph @

recipes/gagadget_ru.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 Gagadget(BasicNewsRecipe):
8 title = 'Gagadget'
9 # Russian
10 description = (
11 'Gagadget.com - \u043d\u0435\u0441\u043a\u0443\u0447\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043e \u0442\u0435\u0445\u043d\u0438\u043a\u0435.' # noqa: E501
12 )
13 __author__ = 'bugmen00t'
14 publisher = 'Gagadget'
15 publication_type = 'news'
16 oldest_article = 7
17 max_articles_per_feed = 100
18 language = 'ru_UK'
19 # language = 'uk'
20 # language = 'en_UK'
21 # language = 'de'
22 # language = 'nb'
23 # language = 'nl'
24 # language = 'es'
25 # language = 'it'
26 # language = 'fr'
27 cover_url = 'https://gagadget.com/static/img/gagadget.jpg'
28 auto_cleanup = False
29 no_stylesheets = False
30
31 remove_tags_before = dict(name='h1')
32
33 remove_tags_after = dict(name='div', attrs={'class': 'l-inner l-inner_high'})
34
35 # Ukrainian version only
36 # remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
37
38 # remove_tags = [
39 # dict(name='div', attrs={'class': 'footer-content'}),
40 # ]
41
42 feeds = [
43 # Russian
44 ('\u0412\u0441\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b', 'https://gagadget.com/rss/'),
45 ('\u041d\u043e\u0432\u043e\u0441\u0442\u0438', 'https://gagadget.com/rss/news/'),
46 ('\u0421\u0442\u0430\u0442\u044c\u0438', 'https://gagadget.com/rss/articles/'),
47 ('\u041e\u0431\u0437\u043e\u0440\u044b', 'https://gagadget.com/rss/reviews/'),
48 # ('\u0421\u043F\u0435\u0446\u043F\u0440\u043E\u0435\u043A\u0442\u044B', 'https://gagadget.com/rss/specials/'),
49 # Ukrainian
50 # ('\u0423\u0441\u0456 \u043C\u0430\u0442\u0435\u0440\u0456\u0430\u043B\u0438', 'https://gagadget.com/uk/rss/'),
51 # ('\u041D\u043E\u0432\u0438\u043D\u0438', 'https://gagadget.com/uk/rss/news/'),
52 # ('\u0421\u0442\u0430\u0442\u0442\u0456', 'https://gagadget.com/uk/rss/articles/'),
53 # ('\u041E\u0433\u043B\u044F\u0434\u0438', 'https://gagadget.com/uk/rss/reviews/'),
54 # English
55 # ('Gagadget', 'https://gagadget.com/en/rss/'),
56 # ('News', 'https://gagadget.com/en/rss/news/'),
57 # German
58 # ('Gagadget', 'https://gagadget.com/de/rss/'),
59 # ('Nachrichten', 'https://gagadget.com/de/rss/news/'),
60 # ('Tests', 'https://gagadget.com/de/rss/reviews/'),
61 # ('Artikel', 'https://gagadget.com/de/rss/articles/'),
62 # Norwegian
63 # ('Gagadget', 'https://gagadget.com/nb/rss/'),
64 # ('Nyheter', 'https://gagadget.com/nb/rss/news/'),
65 # ('Anmeldelser', 'https://gagadget.com/nb/rss/reviews/'),
66 # ('Artikler', 'https://gagadget.com/nb/rss/articles/'),
67 # Dutch
68 # ('Gagadget', 'https://gagadget.com/nl/rss/'),
69 # ('Nieuws', 'https://gagadget.com/nl/rss/news/'),
70 # ('Recensies', 'https://gagadget.com/nl/rss/reviews/'),
71 # ('Artikelen', 'https://gagadget.com/nl/rss/articles/'),
72 # Spanish
73 # ('Gagadget', 'https://gagadget.com/es/rss/'),
74 # ('Noticias', 'https://gagadget.com/es/rss/news/'),
75 # ('Rese\u00F1as', 'https://gagadget.com/es/rss/reviews/'),
76 # ('Art\u00EDculos', 'https://gagadget.com/es/rss/articles/'),
77 # Italian
78 # ('Gagadget', 'https://gagadget.com/it/rss/'),
79 # ('Notizia', 'https://gagadget.com/it/rss/news/'),
80 # ('Recensioni', 'https://gagadget.com/it/rss/reviews/'),
81 # ('Articoli', 'https://gagadget.com/it/rss/articles/'),
82 # French
83 # ('Gagadget', 'https://gagadget.com/fr/rss/'),
84 # ('Nouvelles', 'https://gagadget.com/fr/rss/news/'),
85 # ('Commentaires', 'https://gagadget.com/fr/rss/reviews/'),
86 # ('Des articles', 'https://gagadget.com/fr/rss/articles/'),
87 ]