| 1 |
__license__ = 'GPL v3' |
| 2 |
__copyright__ = '2011, Seongkyoun Yoo <Seongkyoun.yoo at gmail.com>' |
| 3 |
''' |
| 4 |
Profile to download KoreaHerald |
| 5 |
''' |
| 6 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 7 |
|
| 8 |
|
| 9 |
class KoreaHerald(BasicNewsRecipe): |
| 10 |
title = 'KoreaHerald' |
| 11 |
language = 'en' |
| 12 |
description = 'Korea Herald News articles' |
| 13 |
__author__ = 'Seongkyoun Yoo' |
| 14 |
oldest_article = 15 |
| 15 |
recursions = 3 |
| 16 |
max_articles_per_feed = 15 |
| 17 |
no_stylesheets = True |
| 18 |
keep_only_tags = [dict(name='h1', attrs={'class': 'title_sec'}), dict(name='h4', attrs={'class': 'stitle_sec'}), dict(id='articleText')] |
| 19 |
|
| 20 |
feeds = [ |
| 21 |
('National', 'http://www.koreaherald.com/rss/020100000000.xml'), |
| 22 |
('Business', 'http://www.koreaherald.com/rss/020200000000.xml'), |
| 23 |
('Life&Style', 'http://www.koreaherald.com/rss/020300000000.xml'), |
| 24 |
('Entertainment', 'http://www.koreaherald.com/rss/020400000000.xml'), |
| 25 |
('Sports', 'http://www.koreaherald.com/rss/020500000000.xml'), |
| 26 |
('Opinion', 'http://www.koreaherald.com/rss/020600000000.xml'), |
| 27 |
('English Cafe', 'http://www.koreaherald.com/rss/021000000000.xml'), |
| 28 |
] |