From bc2220a26e1ec3e162bdc3f21ca95734f341a681 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 Jul 2013 09:25:58 +0530 Subject: [PATCH] Blindbuch by Armin Geller --- recipes/blind_buch_de.recipe | 63 ++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 recipes/blind_buch_de.recipe diff --git a/recipes/blind_buch_de.recipe b/recipes/blind_buch_de.recipe new file mode 100644 index 0000000000..9ec24fb5d2 --- /dev/null +++ b/recipes/blind_buch_de.recipe @@ -0,0 +1,63 @@ +# +# Written: July 2013 +# Last Edited: 2013-07-11 +# Version: 1.0 +# Last update: 2013-07-25 +# + +__license__ = 'GPL v3' +__copyright__ = '2013, Armin Geller' + +''' +Fetch blindenbuch.de +''' + +from calibre.web.feeds.recipes import BasicNewsRecipe +class AdvancedUserRecipe1303841067(BasicNewsRecipe): + + title = u'Blindbuch - Bücher neu entdecken' + __author__ = 'Armin Geller' # AGe 2013-07-11 + description = u'Bücher blind präsentiert' + publisher = 'blindbuch.de' + publication_type = 'ebook news' + tags = 'Bücher, Literatur, E-Books, Germany' + timefmt = ' [%a, %d %b %Y]' + publication_type = 'Feed' + language = 'de-DE' + encoding = 'utf-8' + + oldest_article = 14 + max_articles_per_feed = 100 + + no_stylesheets = True + use_embedded_content = False + remove_javascript = True + + conversion_options = {'title' : title, + 'comments' : description, + 'tags' : tags, + 'language' : language, + 'publisher' : publisher, + 'authors' : publisher, + } + + cover_url = 'http://blindbuch.de/img/blindbuch_calibre.png' + masthead_url = 'http://www.blindbuch.de/img/Masterhead.JPG' + + extra_css = ''' + h1{font-weight:bold;font-size:large;} + .post-meta {font-size: 1em;text-align: left; font-style: italic} + ''' + + keep_only_tags = [ + dict(name='article') + ] + + remove_tags = [ + dict(name='div', attrs={'class':['su-spoiler su-spoiler-style-1','post-comments comments',]}), + dict(name='span', attrs={'class':['post-comments comments',]}), + dict(name='div', attrs={'addthis':['title',]}), + ] + + feeds = [(u'Blindbuch', u'http://www.blindbuch.de/feed/')] +