From bd467d329504fbd05ae2bb56e68e71a0709b7522 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Jan 2010 12:42:42 -0700 Subject: [PATCH] New recipe for sg.hu by davotibarna --- resources/recipes/sg_hu.recipe | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 resources/recipes/sg_hu.recipe diff --git a/resources/recipes/sg_hu.recipe b/resources/recipes/sg_hu.recipe new file mode 100644 index 0000000000..bdb9aeb86c --- /dev/null +++ b/resources/recipes/sg_hu.recipe @@ -0,0 +1,16 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class SGhu(BasicNewsRecipe): + title = u'SG.hu' + __author__ = 'davotibarna' + description = u'Informatika \xe9s Tudom\xe1ny' + language = 'hu' + oldest_article = 5 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'ISO-8859-2' + + feeds = [(u'SG.hu', u'http://www.sg.hu/plain/rss.xml')] + + def print_version(self, url): + return url.replace('cikkek/', 'printer.php?cid=')