diff --git a/recipes/dingoo_a320.recipe b/recipes/dingoo_a320.recipe index 9f59a3cc5f..f0f4a1c08e 100644 --- a/recipes/dingoo_a320.recipe +++ b/recipes/dingoo_a320.recipe @@ -12,7 +12,6 @@ class Dingoo(BasicNewsRecipe): publisher = 'Emulate.SU' category = 'console' cover_url = u'http://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Dingoo_A320_White.jpg/300px-Dingoo_A320_White.jpg' - language = 'en' no_stylesheets = False remove_javascript = True diff --git a/recipes/gazetaua_ru.recipe b/recipes/gazetaua_ru.recipe index 361e9c69fd..286b5548ad 100644 --- a/recipes/gazetaua_ru.recipe +++ b/recipes/gazetaua_ru.recipe @@ -1,2 +1,50 @@ #!/usr/bin/env python # vim:fileencoding=utf-8 + +from calibre.web.feeds.news import BasicNewsRecipe, classes + +class GazetaUA(BasicNewsRecipe): + title = 'Gazeta.ua' + __author__ = 'bugmen00t' + description = '\u0412\u0441\u0435\u0443\u043A\u0440\u0430\u0438\u043D\u0441\u043A\u0430\u044F \u043E\u043D-\u043B\u0430\u0439\u043D \u0433\u0430\u0437\u0435\u0442\u0430. \u041E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u043E\u0432\u043E\u0441\u0442\u0438 \u0432 \u0423\u043A\u0440\u0430\u0438\u043D\u0435 \u0438 \u0432 \u043C\u0438\u0440\u0435: \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430, \u0441\u043F\u043E\u0440\u0442, \u043A\u0443\u043B\u044C\u0442\u0443\u0440\u0430.' + publisher = '\u0418\u0437\u0434\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0430\u044F \u0433\u0440\u0443\u043F\u043F\u0430 "\u041D\u043E\u0432\u0430 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F"' + category = 'newspaper' + cover_url = u'https://static2.gazeta.ua/img2/cache/preview/1064/1064219_w_450.jpg' + language = 'ru_UK' + no_stylesheets = False + remove_javascript = False + auto_cleanup = False + remove_empty_feeds = True + oldest_article = 3 + max_articles_per_feed = 50 + + remove_tags_before = dict(name='article') + + remove_tags_after = dict(name='section', attrs={'class': 'article-content clearfix'}) + + remove_tags = [ + dict(name='div', attrs={'class': 'mt5'}), + dict(name='div', attrs={'class': 'interview-block'}), + dict(name='p', attrs={'id': 'mce_0'}), + dict(name='p', attrs={'id': 'mce_1'}), + dict(name='p', attrs={'id': 'mce_2'}), + dict(name='p', attrs={'id': 'mce_3'}), + dict(name='p', attrs={'id': 'mce_4'}), + dict(name='p', attrs={'id': 'mce_5'}), + dict(name='p', attrs={'id': 'mce_6'}), + dict(name='p', attrs={'id': 'mce_7'}), + dict(name='p', attrs={'id': 'mce_8'}), + dict(name='p', attrs={'id': 'mce_9'}), + dict(name='p', attrs={'id': 'mce_10'}), + dict(name='p', attrs={'id': 'mce_11'}), + dict(name='p', attrs={'id': 'mce_12'}), + dict(name='p', attrs={'id': 'mce_13'}), + dict(name='p', attrs={'id': 'mce_14'}), + dict(name='p', attrs={'id': 'mce_15'}), + dict(name='p', attrs={'id': 'mce_16'}), + dict(name='section', attrs={'class': 'w-marker-photo lg'}) + ] + + feeds = [ + ('Gazeta.ua', 'https://gazeta.ua/ru/rss') + ] \ No newline at end of file diff --git a/recipes/gazetaua_ua.recipe b/recipes/gazetaua_ua.recipe index 361e9c69fd..caed5a2a65 100644 --- a/recipes/gazetaua_ua.recipe +++ b/recipes/gazetaua_ua.recipe @@ -1,2 +1,50 @@ #!/usr/bin/env python # vim:fileencoding=utf-8 + +from calibre.web.feeds.news import BasicNewsRecipe, classes + +class GazetaUA(BasicNewsRecipe): + title = 'Gazeta.ua' + __author__ = 'bugmen00t' + description = '\u0412\u0441\u0435\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430 \u043E\u043D-\u043B\u0430\u0439\u043D \u0433\u0430\u0437\u0435\u0442\u0430. \u041E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u043D\u0456 \u043D\u043E\u0432\u0438\u043D\u0438 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438 \u0456 \u0441\u0432\u0456\u0442\u0443: \u043F\u043E\u0434\u0456\u0457, \u043F\u043E\u043B\u0456\u0442\u0438\u043A\u0430, \u0441\u043F\u043E\u0440\u0442, \u043A\u0443\u043B\u044C\u0442\u0443\u0440\u0430.' + publisher = '\u0422\u041E\u0412 "\u0412\u0438\u0434\u0430\u0432\u043D\u0438\u0447\u0430 \u043A\u043E\u043C\u043F\u0430\u043D\u0456\u044F "\u041D\u043E\u0432\u0430 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F"' + category = 'newspaper' + cover_url = u'https://static2.gazeta.ua/img2/cache/preview/1064/1064219_w_450.jpg' + language = 'uk' + no_stylesheets = False + remove_javascript = False + auto_cleanup = False + remove_empty_feeds = True + oldest_article = 3 + max_articles_per_feed = 50 + + remove_tags_before = dict(name='article') + + remove_tags_after = dict(name='section', attrs={'class': 'article-content clearfix'}) + + remove_tags = [ + dict(name='div', attrs={'class': 'mt5'}), + dict(name='div', attrs={'class': 'interview-block'}), + dict(name='p', attrs={'id': 'mce_0'}), + dict(name='p', attrs={'id': 'mce_1'}), + dict(name='p', attrs={'id': 'mce_2'}), + dict(name='p', attrs={'id': 'mce_3'}), + dict(name='p', attrs={'id': 'mce_4'}), + dict(name='p', attrs={'id': 'mce_5'}), + dict(name='p', attrs={'id': 'mce_6'}), + dict(name='p', attrs={'id': 'mce_7'}), + dict(name='p', attrs={'id': 'mce_8'}), + dict(name='p', attrs={'id': 'mce_9'}), + dict(name='p', attrs={'id': 'mce_10'}), + dict(name='p', attrs={'id': 'mce_11'}), + dict(name='p', attrs={'id': 'mce_12'}), + dict(name='p', attrs={'id': 'mce_13'}), + dict(name='p', attrs={'id': 'mce_14'}), + dict(name='p', attrs={'id': 'mce_15'}), + dict(name='p', attrs={'id': 'mce_16'}), + dict(name='section', attrs={'class': 'w-marker-photo lg'}) + ] + + feeds = [ + ('Gazeta.ua', 'https://gazeta.ua/rss') + ] \ No newline at end of file diff --git a/recipes/kholod_en.recipe b/recipes/kholod_en.recipe index 01fbb8a522..3224a51da5 100644 --- a/recipes/kholod_en.recipe +++ b/recipes/kholod_en.recipe @@ -25,6 +25,7 @@ class Kholod(BasicNewsRecipe): remove_tags = [dict(name='div', attrs={'class': 'inlinemore'})] - feeds = [(u'Spotlight', 'https://holod.media/en/sections/spotlight/feed/'), + feeds = [(u'Holod Media', 'https://holod.media/en/feed/'), (u'Opinion', 'https://holod.media/en/sections/opinion/feed/'), - (u'Interview', 'https://holod.media/en/sections/interview/feed/')] + (u'Q&A', 'https://holod.media/en/sections/qa/feed/'), + (u'Magazine', 'https://holod.media/en/sections/magazine/feed/')] diff --git a/recipes/moscow_times.recipe b/recipes/moscow_times.recipe index dff09399d9..21004cbe0e 100644 --- a/recipes/moscow_times.recipe +++ b/recipes/moscow_times.recipe @@ -8,12 +8,12 @@ from calibre.web.feeds.news import BasicNewsRecipe class Moscowtimes(BasicNewsRecipe): - title = 'The Moscow Times' + title = 'The Moscow Times (light version)' __author__ = 'Darko Miletic and Sujata Raman' description = 'The Moscow Times is a daily English-language newspaper featuring objective, reliable news on business, politics, sports and culture in Moscow, in Russia and the former Soviet Union (CIS).' # noqa category = 'Russia, Moscow, Russian news, Moscow news, Russian newspaper, daily news, independent news, reliable news, USSR, Soviet Union, CIS, Russian politics, Russian business, Russian culture, Russian opinion, St Petersburg, Saint Petersburg' # noqa publisher = 'The Moscow Times' - language = 'en' + language = 'en_RU' oldest_article = 2 max_articles_per_feed = 100 no_stylesheets = True diff --git a/recipes/rian_eng.recipe b/recipes/rian_eng.recipe index 89d4bddfa3..ac40504ee6 100644 --- a/recipes/rian_eng.recipe +++ b/recipes/rian_eng.recipe @@ -12,7 +12,7 @@ class Ria_eng(BasicNewsRecipe): title = 'Ria Novosti' __author__ = 'Darko Miletic' description = 'News from Russia in English' - language = 'en' + language = 'en_RU' publisher = 'en.rian.ru' category = 'news, politics, Russia' oldest_article = 3