mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update The Daily Mail
This commit is contained in:
parent
1c7ca5b803
commit
717e8ccdd4
@ -8,6 +8,8 @@ class TheDailyMail(BasicNewsRecipe):
|
|||||||
author = 'RufusA and Sujata Raman'
|
author = 'RufusA and Sujata Raman'
|
||||||
simultaneous_downloads= 1
|
simultaneous_downloads= 1
|
||||||
max_articles_per_feed = 50
|
max_articles_per_feed = 50
|
||||||
|
use_embedded_content = False
|
||||||
|
auto_cleanup = True
|
||||||
|
|
||||||
extra_css = '''#js-article-text{font-family:Arial,Helvetica,sans-serif;}
|
extra_css = '''#js-article-text{font-family:Arial,Helvetica,sans-serif;}
|
||||||
h1{font-size:x-large; font-weight:bold;}
|
h1{font-size:x-large; font-weight:bold;}
|
||||||
@ -18,15 +20,6 @@ class TheDailyMail(BasicNewsRecipe):
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
remove_tags = [ dict(name='div', attrs={'class':['article-icon-links-container','print-or-mail-links cleared',
|
|
||||||
'social-links cleared','explore-links','relatedItems','intellicrumbs box','travel','moduleHalf']}),
|
|
||||||
dict(name='div', attrs={'id':['link-unit-wrapper','pushdown-ad','reader-comments','googleAds',]}),
|
|
||||||
dict(name='h3', attrs={'class':['social-links-title']}),
|
|
||||||
dict(name='span', attrs={'class':['clickToEnlargeTop']}),
|
|
||||||
]
|
|
||||||
#remove_tags_before = dict(name='div', attrs={'id':'content'})
|
|
||||||
keep_only_tags = [dict(name='div', attrs={'id':'js-article-text'})]
|
|
||||||
|
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
@ -42,9 +35,3 @@ class TheDailyMail(BasicNewsRecipe):
|
|||||||
(u'Motoring', u'http://www.dailymail.co.uk/motoring/index.rss'),
|
(u'Motoring', u'http://www.dailymail.co.uk/motoring/index.rss'),
|
||||||
(u'Travel', u'http://www.dailymail.co.uk/travel/index.rss')
|
(u'Travel', u'http://www.dailymail.co.uk/travel/index.rss')
|
||||||
]
|
]
|
||||||
|
|
||||||
#def print_version(self, url):
|
|
||||||
# main = url.partition('?')[0]
|
|
||||||
# return main + '?printingPage=true'
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user