diff --git a/recipes/colta.recipe b/recipes/colta.recipe new file mode 100644 index 0000000000..420d818fad --- /dev/null +++ b/recipes/colta.recipe @@ -0,0 +1,32 @@ +# vim:fileencoding=UTF-8 +from __future__ import unicode_literals + +from calibre.web.feeds.news import BasicNewsRecipe + +class Colta(BasicNewsRecipe): + language = 'ru' + __author__ = 'bug_me_not' + title = u'Colta.ru' + description = 'Всё о культуре и духе времени' + publisher = 'OpenSpace.ru' + category = 'news' + cover_url = u'http://www.colta.ru/assets/logo-afb684c3d35fc1f6f103f9fb638c8ec1.png' + language = 'ru' + no_stylesheets = True + remove_javascript = True + + oldest_article = 21 + max_articles_per_feed = 200 + + feeds = [(u'Colta.ru', u'http://www.colta.ru/feed')] + + remove_tags_before = dict(name='section', attrs={'id':'content'}) + remove_tags_after = dict(name='div', attrs={'class':'content'}) + remove_tags = [ +dict(name='div',attrs={'id':'right'}), +dict(name='div',attrs={'class':'soc_block'}), +dict(name='a',attrs={'class':'help_site like_material'}), +dict(name='div',attrs={'class':'share'}), +dict(name='div',attrs={'class':'comments_head'}), +dict(name='div',attrs={'id':'disqus_thread'}) +] diff --git a/recipes/dingoo_a320.recipe b/recipes/dingoo_a320.recipe new file mode 100644 index 0000000000..2969f983e4 --- /dev/null +++ b/recipes/dingoo_a320.recipe @@ -0,0 +1,25 @@ +# vim:fileencoding=UTF-8 +from __future__ import unicode_literals + +from calibre.web.feeds.news import BasicNewsRecipe + +class Dingoo(BasicNewsRecipe): + language = 'ru' + __author__ = 'bug_me_not' + title = u'Dingoo A320. \u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441' + description = 'Портативная игровая консоль Dingoo A320 и другие необычные гаджеты' + 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 + + oldest_article = 20 + max_articles_per_feed = 200 + + feeds = [(u'A320', u'http://feeds.feedburner.com/ru_dingoo')] + + remove_tags_before = dict(name='div', attrs={'class':'posttitle'}) + remove_tags_after = dict(name='div', attrs={'class':'article'}) + remove_tags = [dict(name='iframe')] diff --git a/recipes/inopressa.recipe b/recipes/inopressa.recipe new file mode 100644 index 0000000000..36c0a3f202 --- /dev/null +++ b/recipes/inopressa.recipe @@ -0,0 +1,23 @@ +# vim:fileencoding=UTF-8 +from __future__ import unicode_literals + +from calibre.web.feeds.news import BasicNewsRecipe + +class Dingoo(BasicNewsRecipe): + language = 'ru' + __author__ = 'bug_me_not' + title = u'\u0418\u043d\u043e\u041f\u0440\u0435\u0441\u0441\u0430' + description = 'Иностранная пресса о России и не только' + cover_url = u'http://static.inopressa.ru/img/inopressa-logo-light.gif' + language = 'ru' + oldest_article = 14 + max_articles_per_feed = 200 + + no_stylesheets = False + remove_javascript = True + auto_cleanup = True + + feeds = [(u'\u043e \u0420\u043e\u0441\u0441\u0438\u0438 \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e', u'http://pda.inopressa.ru/rss')] + + remove_tags_before = dict(name='div', attrs={'class':'article'}) + remove_tags_after = dict(name='div', attrs={'class':'source'})