Update Le Temps

This commit is contained in:
Kovid Goyal 2015-04-09 13:23:51 +05:30
parent b4c01accb1
commit 71880b4982

View File

@ -68,6 +68,7 @@ class LeTemps(BasicNewsRecipe):
ans = item['href']
break
pos = ans.find('letemps0Bch')
if pos > -1:
ans = 'http://www.' + ans[pos:]
ans = ans.replace('0A', '0')
ans = ans.replace('0B', '.')
@ -80,10 +81,12 @@ class LeTemps(BasicNewsRecipe):
]
remove_tags = [
dict(name='div', attrs={'id':'html5_gallery'}),
dict(name='ul', attrs={'class':['tabs']}),
dict(name='ul', attrs={'class':['tabs', 'social-buttons cf']}),
dict(name='img', attrs={'class':['bigImg']}),
dict(name='div', attrs={'class':['box function','contentInserts','box banner',
'box additional','galleryOverview','position','rightAd','bottomAd','video',]}),
dict(name='div', attrs={'class':[
'box function','contentInserts','box banner', 'related-stories',
'box additional','galleryOverview','position','rightAd','bottomAd','video',
]}),
]
extra_css = '''
@ -94,7 +97,6 @@ class LeTemps(BasicNewsRecipe):
#content{font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;}
.box.article.important{font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;}
#h2 {font-size: 24px; line-height: 25px; margin-bottom: 14px; text-transform:uppercase;}
.author {font-size:x-small; margin: 0 0 5px 0; color:#797971; font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;}
.lead {font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;font-weight: bold; margin: 10px 0;font-size:small;}
p {margin: 0 0 10px 0;}
h3{font-size:small;font-weight:bold;}
@ -114,7 +116,6 @@ class LeTemps(BasicNewsRecipe):
.caption dt img {float: left;}
.caption dd {width: 100%;bottom: -1px;position: absolute;}
.caption dd .description {z-index: 2;margin-left: 0px;padding: 3px 4px;position: relative;}
.caption dd .background {top: 0;left: 0;width: 100%;height: 100%;filter: alpha(opacity=70);opacity: 0.7;z-index: 1;position: absolute;background-color: black;}
'''
feeds = [