From 159ba40d56b70ca23cfa1e3f5f5849594bdeb1d8 Mon Sep 17 00:00:00 2001 From: felagund Date: Wed, 11 Jun 2014 17:05:39 +0200 Subject: [PATCH] Add recipes for Czech magazine Respekt --- recipes/respekt.recipe | 37 ------ recipes/respekt_magazine.recipe | 148 +++++++++++++++++++++ recipes/respekt_web.recipe | 225 ++++++++++++++++++++++++++++++++ 3 files changed, 373 insertions(+), 37 deletions(-) delete mode 100644 recipes/respekt.recipe create mode 100644 recipes/respekt_magazine.recipe create mode 100644 recipes/respekt_web.recipe diff --git a/recipes/respekt.recipe b/recipes/respekt.recipe deleted file mode 100644 index 91aa2edb40..0000000000 --- a/recipes/respekt.recipe +++ /dev/null @@ -1,37 +0,0 @@ -# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -from __future__ import unicode_literals -from calibre.web.feeds.recipes import BasicNewsRecipe -import re - -class respektRecipe(BasicNewsRecipe): - __author__ = 'bubak' - title = u'Respekt' - publisher = u'Respekt' - description = 'Respekt' - oldest_article = 1 - max_articles_per_feed = 20 - - feeds = [ - (u'Všechny články', u'http://respekt.ihned.cz/index.php?p=R00000_rss') - ,(u'Blogy', u'http://blog.respekt.ihned.cz/?p=Rb00VR_rss') - #,(u'Respekt DJ', u'http://respekt.ihned.cz/index.php?p=R00RDJ_rss') - ] - - - encoding = 'cp1250' - language = 'cs' - cover_url = 'http://respekt.ihned.cz/img/R/respekt_logo.png' - remove_javascript = True - no_stylesheets = True - - remove_tags = [dict(name='div', attrs={'class':['d-tools', 'actions']})] - remove_tags_before = dict(name='div',attrs={'id':['detail']}) - remove_tags_after = dict(name='div',attrs={'class':'d-tools'}) - preprocess_regexps = [(re.compile(r'