diff --git a/recipes/kyungyhang b/recipes/kyungyhang new file mode 100644 index 0000000000..ac658b1cab --- /dev/null +++ b/recipes/kyungyhang @@ -0,0 +1,37 @@ +__license__ = 'GPL v3' +__copyright__ = '2011, Seongkyoun Yoo ' +''' +Profile to download The Kyungyhang +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Kyungyhang(BasicNewsRecipe): + title = u'Kyungyhang' + language = 'ko' + description = u'The Kyungyhang Shinmun articles' + __author__ = 'Seongkyoun Yoo' + oldest_article = 20 + recursions = 2 + max_articles_per_feed = 20 + no_stylesheets = True + remove_javascript = True + + keep_only_tags = [ + dict(name='div', attrs ={'class':['article_title_wrap']}), + dict(name='div', attrs ={'class':['article_txt']}) + ] + + remove_tags_after = dict(id={'sub_bottom'}) + + remove_tags = [ + dict(name='iframe'), + dict(id={'TdHot'}), + dict(name='div', attrs={'class':['btn_list','bline','linebottom','bestArticle']}), + dict(name='dl', attrs={'class':['CL']}), + dict(name='ul', attrs={'class':['tab']}), + ] + + feeds = [ + ('All News','http://www.khan.co.kr/rss/rssdata/total_news.xml'), + ] \ No newline at end of file