Debian Codegraph @

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