__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'), ]