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