From 8d215c56ffb6102ee71f057cd83f6d1971891076 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Nov 2013 17:50:48 +0530 Subject: [PATCH] Loksatta by Krittika Goyal --- recipes/loksatta.recipe | 30 ++++++++++++++++++++++++++++++ recipes/maharashtra_times.recipe | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 recipes/loksatta.recipe diff --git a/recipes/loksatta.recipe b/recipes/loksatta.recipe new file mode 100644 index 0000000000..6c0a071628 --- /dev/null +++ b/recipes/loksatta.recipe @@ -0,0 +1,30 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class HindustanTimes(BasicNewsRecipe): + title = u'Loksatta' + language = 'mr' + __author__ = 'Krittika Goyal' + oldest_article = 1 # days + max_articles_per_feed = 25 + #encoding = 'cp1252' + use_embedded_content = False + + no_stylesheets = True + auto_cleanup = True + #auto_cleanup_keep = '//div[@id="main-image"]' + + feeds = [ +('Maharashtra', + 'http://www.loksatta.com/maharashtra.xml'), +('Mumbai', + 'http://www.loksatta.com/mumbai.xml'), +('Pune', + 'http://www.loksatta.com/pune.xml'), +('Desh Videsh', + 'http://www.loksatta.com/deshvidesh.xml'), +('Krida', + 'http://www.loksatta.com/krida.xml'), +('Arthasatta', + 'http://www.loksatta.com/arthasatta.xml'), +] + diff --git a/recipes/maharashtra_times.recipe b/recipes/maharashtra_times.recipe index 91679dec62..ca6f99ef21 100644 --- a/recipes/maharashtra_times.recipe +++ b/recipes/maharashtra_times.recipe @@ -2,7 +2,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class HindustanTimes(BasicNewsRecipe): title = u'Maharashtra Times' - language = 'en_IN' + language = 'mr' __author__ = 'Krittika Goyal' oldest_article = 1 #days max_articles_per_feed = 25