calibre/recipes/china_times.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

42 lines
2.0 KiB
Plaintext

# -*- coding: utf-8 -*-
__license__ = 'GPL v3'
# dug from http://www.mobileread.com/forums/showthread.php?p=1012294
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1277443634(BasicNewsRecipe):
title = u'中時電子報'
oldest_article = 1
max_articles_per_feed = 100
feeds = [(u'焦點要聞', u'http://feeds.feedburner.com/chinatimes/chinatimes-focus'),
(u'生活新聞', u'http://feeds.feedburner.com/chinatimes/chinatimes-life'),
(u'社會新聞', u'http://feeds.feedburner.com/chinatimes/chinatimes-society'),
(u'兩岸國際', u'http://feeds.feedburner.com/chinatimes/chinatimes-international'),
(u'時論廣場', u'http://feeds.feedburner.com/chinatimes/chinatimes-comment'),
(u'藝文副刊', u'http://feeds.feedburner.com/chinatimes/chinatimes-philology'),
(u'地方新聞', u'http://feeds.feedburner.com/chinatimes/chinatimes-local'),
(u'財經焦點', u'http://feeds.feedburner.com/chinatimes/chinatimes-finance'),
(u'運動天地', u'http://feeds.feedburner.com/chinatimes/chinatimes-sport'),
(u'娛樂新聞', u'http://feeds.feedburner.com/chinatimes/chinatimes-showbiz'),
(u'時尚消費', u'http://feeds.feedburner.com/chinatimes/chinatimes-fashion'),
# (u'財經', u'http://rss.chinatimes.com/rss/finance-u.rss'), # broken links
# (u'股市', u'http://rss.chinatimes.com/rss/stock-u.rss') # broken links
]
__author__ = 'einstuerzende, updated by Eddie Lau'
__version__ = '1.1'
language = 'zh'
publisher = 'China Times Group'
description = 'China Times (Taiwan)'
category = 'News, Chinese, Taiwan'
remove_javascript = True
use_embedded_content = False
no_stylesheets = True
auto_cleanup = True
encoding = 'utf-8'
conversion_options = {'linearize_tables': True}
masthead_url = 'http://www.fcuaa.org/gif/chinatimeslogo.gif'
cover_url = 'http://www.fcuaa.org/gif/chinatimeslogo.gif'