mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
# -*- mode: python -*-
|
|
# -*- coding: utf-8 -*-
|
|
# vim:fileencoding=utf-8
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2010 - 2017, Darko Miletic <darko.miletic at gmail.com>'
|
|
'''
|
|
www.chinadaily.com.cn
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class Pagina12(BasicNewsRecipe):
|
|
title = 'China Daily'
|
|
__author__ = 'Darko Miletic'
|
|
description = 'Chinadaily.com.cn is the largest English portal in China, providing news, business information, BBS, learning materials.'
|
|
publisher = 'China Daily Information Co.'
|
|
category = 'news, politics, China'
|
|
oldest_article = 2
|
|
max_articles_per_feed = 200
|
|
no_stylesheets = True
|
|
encoding = 'utf8'
|
|
use_embedded_content = False
|
|
language = 'en_CN'
|
|
remove_empty_feeds = True
|
|
publication_type = 'newsportal'
|
|
auto_cleanup = True
|
|
masthead_url = 'http://www.chinadaily.com.cn/98103.files/logo.jpg'
|
|
extra_css = """
|
|
body{font-family: Arial,Helvetica,sans-serif }
|
|
.titlebox{font-family: "Times New Roman",Times,serif}
|
|
.timebox, .authorbox{font-size: x-small}
|
|
"""
|
|
|
|
conversion_options = {
|
|
'comment': description,
|
|
'tags': category,
|
|
'publisher': publisher,
|
|
'language': language
|
|
}
|
|
|
|
feeds = [
|
|
(u'China Daily', u'http://www.chinadaily.com.cn/rss/cndy_rss.xml'),
|
|
(u'HK Edition', u'http://www.chinadaily.com.cn/rss/hk_rss.xml'),
|
|
]
|