mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Daily Express
This commit is contained in:
parent
fd34b9dc1e
commit
7991fb68ff
@ -4,18 +4,21 @@ class AdvancedUserRecipe1376229553(BasicNewsRecipe):
|
|||||||
title = u'Daily Express'
|
title = u'Daily Express'
|
||||||
__author__ = 'Dave Asbury'
|
__author__ = 'Dave Asbury'
|
||||||
language = 'en_GB'
|
language = 'en_GB'
|
||||||
|
# 13-08-17 remove quoted text from article
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
#remove_javascript = True
|
#remove_javascript = True
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
oldest_article = 2
|
oldest_article = 1
|
||||||
max_articles_per_feed = 10
|
max_articles_per_feed = 10
|
||||||
#auto_cleanup = True
|
#auto_cleanup = True
|
||||||
compress_news_images = True
|
compress_news_images = True
|
||||||
compress_news_images_max_size = 25
|
compress_news_images_max_size = 30
|
||||||
ignore_duplicate_articles = {'title', 'url'}
|
ignore_duplicate_articles = {'title', 'url'}
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
|
dict(attrs={'class' : 'quote'}),
|
||||||
|
dict(attrs={'class' : 'author'}),
|
||||||
dict(name='footer'),
|
dict(name='footer'),
|
||||||
dict(attrs={'id' : 'header_addons'}),
|
dict(attrs={'id' : 'header_addons'}),
|
||||||
dict(attrs={'class' : 'hoverException'}),
|
dict(attrs={'class' : 'hoverException'}),
|
||||||
@ -60,9 +63,11 @@ class AdvancedUserRecipe1376229553(BasicNewsRecipe):
|
|||||||
return cover_url
|
return cover_url
|
||||||
|
|
||||||
extra_css = '''
|
extra_css = '''
|
||||||
h1{font-weight:bold;font-size:26px;}
|
h1{font-weight:bold;font-size:175%;}
|
||||||
h2{font-weight:normal;font-size:small;}
|
h2{font-weight:normal;font-size:75%;}
|
||||||
p{font-size:14px;}
|
#p{font-size:14px;}
|
||||||
body{font-size:14px;}
|
#body{font-size:14px;}
|
||||||
|
.photo-caption {display: block;margin-left: auto;margin-right: auto;width:100%;font-size:40%;}
|
||||||
|
.publish-info {font-size:50%;}
|
||||||
|
.photo img {display: block;margin-left: auto;margin-right: auto;width:100%;}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user