calibre/recipes/korea_herald.recipe
2016-12-04 08:44:29 +05:30

35 lines
1.2 KiB
Plaintext

__license__ = 'GPL v3'
__copyright__ = '2011, Seongkyoun Yoo <Seongkyoun.yoo at gmail.com>'
'''
Profile to download KoreaHerald
'''
from calibre.web.feeds.news import BasicNewsRecipe
class KoreaHerald(BasicNewsRecipe):
title = u'KoreaHerald'
language = 'en'
description = u'Korea Herald News articles'
__author__ = 'Seongkyoun Yoo'
oldest_article = 15
recursions = 3
max_articles_per_feed = 15
no_stylesheets = True
keep_only_tags = [
dict(name='h1', attrs={
'class':'title_sec'}),
dict(name='h4', attrs={
'class':'stitle_sec'}),
dict(id='articleText')
]
feeds = [
('National', 'http://www.koreaherald.com/rss/020100000000.xml'),
('Business', 'http://www.koreaherald.com/rss/020200000000.xml'),
('Life&Style', 'http://www.koreaherald.com/rss/020300000000.xml'),
('Entertainment', 'http://www.koreaherald.com/rss/020400000000.xml'),
('Sports', 'http://www.koreaherald.com/rss/020500000000.xml'),
('Opinion', 'http://www.koreaherald.com/rss/020600000000.xml'),
('English Cafe', 'http://www.koreaherald.com/rss/021000000000.xml')
]