From 74840ce44adecd8380a09c04816ec26ee28abe02 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 17 Oct 2011 10:35:04 +0530 Subject: [PATCH] Hankyoreh21 by Seongkyoun Yoo. Fixes #876127 (add news recipe for korean hankyoreh21) --- recipes/hankyoreh21.recipe | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 recipes/hankyoreh21.recipe diff --git a/recipes/hankyoreh21.recipe b/recipes/hankyoreh21.recipe new file mode 100644 index 0000000000..85ded3b8e3 --- /dev/null +++ b/recipes/hankyoreh21.recipe @@ -0,0 +1,26 @@ +__license__ = 'GPL v3' +__copyright__ = '2011, Seongkyoun Yoo ' +''' +Profile to download The Hankyoreh +''' +import re +from calibre.web.feeds.news import BasicNewsRecipe + +class Hankyoreh21(BasicNewsRecipe): + title = u'Hankyoreh21' + language = 'ko' + description = u'The Hankyoreh21 Magazine articles' + __author__ = 'Seongkyoun Yoo' + oldest_article = 20 + recursions = 1 + max_articles_per_feed = 120 + no_stylesheets = True + remove_javascript = True + keep_only_tags = [ + dict(name='font', attrs={'class':'t18bk'}), + dict(id=['fontSzArea']) + ] + + feeds = [ + ('Hani21','http://h21.hani.co.kr/rss/ '), + ] \ No newline at end of file