From 8da936e470b76deb6c0e6f3f719821b907fbcdc2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Mar 2013 21:39:16 +0530 Subject: [PATCH] Deccan Herald by Muruli Shamanna --- recipes/deccan_herald.recipe | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 recipes/deccan_herald.recipe diff --git a/recipes/deccan_herald.recipe b/recipes/deccan_herald.recipe new file mode 100644 index 0000000000..f2b4b37129 --- /dev/null +++ b/recipes/deccan_herald.recipe @@ -0,0 +1,35 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1362501327(BasicNewsRecipe): + title = u'Deccan Herald' + __author__ = 'Muruli Shamanna' + description = 'Daily news from the Deccan Herald' + + oldest_article = 1 + max_articles_per_feed = 100 + auto_cleanup = True + category = 'News' + language = 'en_IN' + encoding = 'utf-8' + publisher = 'The Printers (Mysore) Private Ltd' + ##use_embedded_content = True + + cover_url = 'http://www.quizzing.in/wp-content/uploads/2010/07/DH.gif' + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + + feeds = [(u'News', u'http://www.deccanherald.com/rss/news.rss'), (u'Business', u'http://www.deccanherald.com/rss/business.rss'), (u'Entertainment', u'http://www.deccanherald.com/rss/entertainment.rss'), (u'Sports', u'http://www.deccanherald.com/rss/sports.rss'), (u'Environment', u'http://www.deccanherald.com/rss/environment.rss')] + + extra_css = ''' + h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:150%;} + h2{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:155%;} + img {max-width:100%; min-width:100%;} + p{font-family:Arial,Helvetica,sans-serif;font-size:large;} + body{font-family:Helvetica,Arial,sans-serif;font-size:medium;} + '''