This commit is contained in:
Kovid Goyal 2017-11-19 07:32:55 +05:30
parent 0b09e059c2
commit f535aa7722
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,9 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
# vim:fileencoding=utf-8
__license__ = 'GPL v3' __license__ = 'GPL v3'
__copyright__ = '2010 - 2012, Darko Miletic <darko.miletic at gmail.com>' __copyright__ = '2010 - 2017, Darko Miletic <darko.miletic at gmail.com>'
''' '''
www.chinadaily.com.cn www.chinadaily.com.cn
''' '''
@ -21,7 +25,8 @@ class Pagina12(BasicNewsRecipe):
language = 'en_CN' language = 'en_CN'
remove_empty_feeds = True remove_empty_feeds = True
publication_type = 'newsportal' publication_type = 'newsportal'
masthead_url = 'http://www.chinadaily.com.cn/15421.files/chinadailylogo_e_20100301.jpg' auto_cleanup = True
masthead_url = 'http://www.chinadaily.com.cn/98103.files/logo.jpg'
extra_css = """ extra_css = """
body{font-family: Arial,Helvetica,sans-serif } body{font-family: Arial,Helvetica,sans-serif }
.titlebox{font-family: "Times New Roman",Times,serif} .titlebox{font-family: "Times New Roman",Times,serif}
@ -29,13 +34,12 @@ class Pagina12(BasicNewsRecipe):
""" """
conversion_options = { conversion_options = {
'comment': description, 'tags': category, 'publisher': publisher, 'language': language 'comment': description,
'tags': category,
'publisher': publisher,
'language': language
} }
remove_tags = [dict(name=['object', 'embed', 'iframe', 'table'])]
keep_only_tags = [
dict(attrs={'class': ['titlebox', 'timebox', 'authorbox', 'cont-ins']})]
feeds = [ feeds = [
(u'China', u'http://www.chinadaily.com.cn/rss/china_rss.xml'), (u'China', u'http://www.chinadaily.com.cn/rss/china_rss.xml'),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 631 B