mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e0dc4e0998
commit
2848e0d2f1
@ -10,10 +10,12 @@ class Handelsblatt(BasicNewsRecipe):
|
|||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
cover_url = 'http://www.handelsblatt.com/images/logo/logo_handelsblatt.com.png'
|
cover_url = 'http://www.handelsblatt.com/images/logo/logo_handelsblatt.com.png'
|
||||||
language = 'de'
|
language = 'de'
|
||||||
keep_only_tags = []
|
# keep_only_tags = []
|
||||||
keep_only_tags.append(dict(name = 'div', attrs = {'class': 'structOneCol'}))
|
keep_only_tags = (dict(name = 'div', attrs = {'class': ['hcf-detail-abstract hcf-teaser ajaxify','hcf-detail','hcf-author-wrapper']}))
|
||||||
keep_only_tags.append(dict(name = 'div', attrs = {'id': 'fullText'}))
|
# keep_only_tags.append(dict(name = 'div', attrs = {'id': 'fullText'}))
|
||||||
remove_tags = [dict(name='img', attrs = {'src': 'http://www.handelsblatt.com/images/icon/loading.gif'})]
|
remove_tags = [dict(name='img', attrs = {'src': 'http://www.handelsblatt.com/images/icon/loading.gif'})
|
||||||
|
,dict(name='ul' , attrs={'class':['hcf-detail-tools']})
|
||||||
|
]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'Handelsblatt Exklusiv',u'http://www.handelsblatt.com/rss/exklusiv'),
|
(u'Handelsblatt Exklusiv',u'http://www.handelsblatt.com/rss/exklusiv'),
|
||||||
@ -28,14 +30,16 @@ class Handelsblatt(BasicNewsRecipe):
|
|||||||
(u'Handelsblatt Weblogs',u'http://www.handelsblatt.com/rss/blogs')
|
(u'Handelsblatt Weblogs',u'http://www.handelsblatt.com/rss/blogs')
|
||||||
]
|
]
|
||||||
extra_css = '''
|
extra_css = '''
|
||||||
h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
|
.hcf-headline {font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:x-large;}
|
||||||
h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
|
.hcf-overline {font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:x-large;}
|
||||||
p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
|
.hcf-exclusive {font-family:Arial,Helvetica,sans-serif; font-style:italic;font-weight:bold; margin-right:5pt;}
|
||||||
body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
|
p{font-family:Arial,Helvetica,sans-serif;}
|
||||||
|
.hcf-location-mark{font-weight:bold; margin-right:5pt;}
|
||||||
|
.MsoNormal{font-family:Helvetica,Arial,sans-serif;}
|
||||||
|
.hcf-author-wrapper{font-style:italic;}
|
||||||
|
.hcf-article-date{font-size:x-small;}
|
||||||
|
.hcf-caption {font-style:italic;font-size:small;}
|
||||||
|
img {align:left;}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def print_version(self, url):
|
|
||||||
m = re.search('(?<=;)[0-9]*', url)
|
|
||||||
return u'http://www.handelsblatt.com/_b=' + str(m.group(0)) + ',_p=21,_t=ftprint,doc_page=0;printpage'
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user