mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix for tag changes
This commit is contained in:
parent
40a8522f32
commit
32b66e167d
@ -2,7 +2,7 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010-2013, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
www.thetimes.co.uk
|
||||
www.thetimes.co.uk/magazine/the-sunday-times-magazine/
|
||||
'''
|
||||
import urllib
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
@ -55,10 +55,9 @@ class TimesOnline(BasicNewsRecipe):
|
||||
]
|
||||
remove_attributes = ['lang']
|
||||
keep_only_tags = [
|
||||
dict(attrs={'class': 'Article Article--default'}
|
||||
dict(attrs={'id': 'article-main'}
|
||||
), dict(attrs={'class': 'f-author'}), dict(attrs={'id': 'bodycopy'})
|
||||
]
|
||||
remove_tags_after = dict(attrs={'class': 'Article-content'})
|
||||
|
||||
feeds = [
|
||||
(u'The Sunday Times Magazine', u'http://www.thetimes.co.uk/magazine/the-sunday-times-magazine/'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user