From bfe6bd0626f522e0376fae8f58c37a9e06a1e743 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 10 Jul 2011 17:53:00 -0600 Subject: [PATCH] Geek and Poke by DrMerry --- recipes/geek_poke.recipe | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 recipes/geek_poke.recipe diff --git a/recipes/geek_poke.recipe b/recipes/geek_poke.recipe new file mode 100644 index 0000000000..8fa9e7ca29 --- /dev/null +++ b/recipes/geek_poke.recipe @@ -0,0 +1,35 @@ +#!/usr/bin/python + +from calibre.web.feeds.news import BasicNewsRecipe +import re + +class AdvancedUserRecipe1307556816(BasicNewsRecipe): + title = u'Geek and Poke' + __author__ = u'DrMerry' + description = u'Geek and Poke Cartoons' + oldest_article = 31 + max_articles_per_feed = 100 + language = u'en' + simultaneous_downloads = 5 + #delay = 1 + timefmt = ' [%A, %d %B, %Y]' + summary_length = -1 + no_stylesheets = True + cover_url = 'http://geekandpoke.typepad.com/aboutcoders.jpeg' + remove_javascript = True + remove_empty_feeds = True + publication_type = 'blog' + + preprocess_regexps = [ (re.compile(r'(

 

||]*>Tweet|]*>|)', re.DOTALL|re.IGNORECASE),lambda match: ''), + (re.compile(r'( | )', re.DOTALL|re.IGNORECASE),lambda match: ' '), + (re.compile(r'()+', re.DOTALL|re.IGNORECASE),lambda match: '
') + ] + + extra_css = 'body, h3, p, h2, h1, div, span{margin:0px} h2.date-header {font-size: 0.7em; color:#eee;} h3.entry-header{font-size: 1.0em} div.entry-body{font-size: 0.9em}' + + + remove_tags_before = dict(name='h2', attrs={'class':'date-header'}) + remove_tags_after = dict(name='div', attrs={'class':'entry-body'}) + + + feeds = [(u'Geek and Poke', u'http://feeds.feedburner.com/GeekAndPoke?format=xml')]