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'