From 0e31649305183bc410e7a5fa950dac0ac4654b80 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 27 Dec 2011 18:13:54 +0530 Subject: [PATCH] NYTimes Global by Krittika Goyal --- recipes/iht.recipe | 79 ++++++--------------- src/calibre/web/feeds/recipes/collection.py | 2 +- 2 files changed, 24 insertions(+), 57 deletions(-) diff --git a/recipes/iht.recipe b/recipes/iht.recipe index 85a87ccba4..bc13a99249 100644 --- a/recipes/iht.recipe +++ b/recipes/iht.recipe @@ -1,63 +1,30 @@ -__license__ = 'GPL v3' -__copyright__ = '2008, Derry FitzGerald' -''' -iht.com -''' -import re - from calibre.web.feeds.news import BasicNewsRecipe -from calibre.ptempfile import PersistentTemporaryFile +class NYTimesGlobal(BasicNewsRecipe): + title = u'NY Times Global' + language = 'en' + __author__ = 'Krittika Goyal' + oldest_article = 1 #days + max_articles_per_feed = 25 + use_embedded_content = False -class InternationalHeraldTribune(BasicNewsRecipe): - title = u'The International Herald Tribune' - __author__ = 'Derry FitzGerald' - language = 'en' - - oldest_article = 1 - max_articles_per_feed = 30 no_stylesheets = True + auto_cleanup = True - remove_tags = [dict(name='div', attrs={'class':['footer','header']}), - dict(name=['form'])] - preprocess_regexps = [ - (re.compile(r'