From 6a99d6c4b5392b98c52e2d6edb63ef2fc8ae4f9d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Mar 2010 17:48:02 +0530 Subject: [PATCH] New recipe for the Washington Times by Kos Semonski --- resources/recipes/wash_times.recipe | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 resources/recipes/wash_times.recipe diff --git a/resources/recipes/wash_times.recipe b/resources/recipes/wash_times.recipe new file mode 100644 index 0000000000..fd29fd7396 --- /dev/null +++ b/resources/recipes/wash_times.recipe @@ -0,0 +1,49 @@ +#!/usr/bin/env python +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' +__docformat__ = 'restructuredtext en' + +import re +from calibre.web.feeds.news import BasicNewsRecipe + + +class WashingtonTimes(BasicNewsRecipe): + + title = 'Washington Times' + max_articles_per_feed = 15 + language = 'en' + __author__ = 'Kos Semonski' + + + preprocess_regexps = [ (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in + [ + (r'.*?' , lambda match : ''), + (r'
.*?', lambda match : ''), + (r'.*?', lambda match : ''), + (r'.*?', lambda match : ''), + (r'.*?', lambda match : ''), + ##(r'.*?
', lambda match : ''), + (r'