mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
# -*- coding: utf-8 -*-
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2011, Seongkyoun Yoo <seongkyoun.yoo at gmail.com>'
|
|
'''
|
|
Profile to download The Hankyoreh
|
|
'''
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class Hankyoreh(BasicNewsRecipe):
|
|
language = 'ko'
|
|
title = u'한겨례'
|
|
description = u'The Hankyoreh News articles'
|
|
__author__ = 'Seongkyoun Yoo'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 10
|
|
no_stylesheets = True
|
|
remove_javascript = True
|
|
|
|
keep_only_tags = [
|
|
dict(name='div', attrs={'class': ['article-head']}),
|
|
dict(name='div', attrs={'class': ['article-text']}),
|
|
]
|
|
remove_tags = [
|
|
dict(name='p', attrs={'class': ['category']}),
|
|
]
|
|
remove_tags_after = dict(id={'ad_box01'})
|
|
|
|
feeds = [
|
|
(u'정치', 'http://www.hani.co.kr/ilram/rss/hkr_news_list_politics.xml'),
|
|
(u'사회', 'http://www.hani.co.kr/ilram/rss/hkr_news_list_society.xml'),
|
|
(u'문화', 'http://www.hani.co.kr/ilram/rss/hkr_news_list_culture.xml'),
|
|
(u'스포츠', 'http://www.hani.co.kr/ilram/rss/hkr_news_list_sports.xml'),
|
|
(u'사설·칼럼', 'http://www.hani.co.kr/ilram/rss/hkr_news_list_opinion.xml'),
|
|
(u'만화만평', 'http://www.hani.co.kr/ilram/rss/hkr_news_list_cartoon.xml'),
|
|
]
|