calibre/recipes/sisainlive.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

50 lines
2.0 KiB
Plaintext

# -*- coding: utf-8 -*-
__license__ = 'GPL v3'
__copyright__ = '2015, Hoje Lee <hojelei at gmail.com>'
'''
Profile to download SisaIN Live
'''
from calibre.web.feeds.news import BasicNewsRecipe
class SisaINLive(BasicNewsRecipe):
language = 'ko'
title = u'시사인 라이브'
description = u'시사인 라이브 기사'
__author__ = 'Hoje Lee'
oldest_article = 30
max_articles_per_feed = 10
auto_cleanup = True
"""
# manual cleanup
no_stylesheets = True
remove_javascript = True
keep_only_tags = [
dict(name='div', attrs ={'class':['View_Title']}),
dict(name='div', attrs ={'class':['View_Info']}),
dict(name='div', attrs ={'class':['View_Time']}),
dict(id='articleBody'),
]
remove_tags = [
dict(name='table', attrs ={'width':['320'], 'height':['265']}),
]
"""
feeds = [
# (u'전체기사', 'http://www.sisainlive.com/rss.xml'),
(u'인기기사', 'http://www.sisainlive.com/rss/clickTop.xml'),
(u'커버스토리', 'http://www.sisainlive.com/rss/SRN121.xml'),
(u'특집', 'http://www.sisainlive.com/rss/SRN122.xml'),
(u'정치', 'http://www.sisainlive.com/rss/S1N15.xml'),
(u'경제', 'http://www.sisainlive.com/rss/S1N16.xml'),
(u'사회', 'http://www.sisainlive.com/rss/S1N17.xml'),
(u'문화', 'http://www.sisainlive.com/rss/S1N18.xml'),
(u'국제.한반도', 'http://www.sisainlive.com/rss/S1N4.xml'),
(u'실용.과학', 'http://www.sisainlive.com/rss/S1N6.xml'),
(u'휴먼&휴', 'http://www.sisainlive.com/rss/S1N19.xml'),
(u'인터뷰.오피니언', 'http://www.sisainlive.com/rss/S1N5.xml'),
(u'사진.만화', 'http://www.sisainlive.com/rss/S1N7.xml'),
(u'별책부록', 'http://www.sisainlive.com/rss/S1N14.xml'),
]