mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Financial Times
Fixes #1587578 [Update to financial times recipes](https://bugs.launchpad.net/calibre/+bug/1587578)
This commit is contained in:
parent
57450e54e6
commit
f4b6ca4b27
@ -40,7 +40,12 @@ class FinancialTimes(BasicNewsRecipe):
|
||||
br.submit()
|
||||
return br
|
||||
|
||||
keep_only_tags = [dict(name='div', attrs={'class':['fullstory fullstoryHeader','fullstory fullstoryBody','ft-story-header','ft-story-body','index-detail']})]
|
||||
keep_only_tags = [
|
||||
dict(name='p' , attrs={'class':lambda x: x and 'lastUpdated' in x.split()}),
|
||||
dict(name='div', attrs={'class':lambda x: x and 'syndicationHeadline' in x.split()}),
|
||||
dict(name='p' , attrs={'class':lambda x: x and 'byline' in x.split()}),
|
||||
dict(name='div', attrs={'class':['fullstory fullstoryBody','ft-story-header','ft-story-body','index-detail']})
|
||||
]
|
||||
remove_tags = [
|
||||
dict(name='style', attrs={'id':'antiClickjack'}),
|
||||
dict(name='div', attrs={'id':'floating-con'}),
|
||||
|
@ -49,9 +49,15 @@ class FinancialTimes(BasicNewsRecipe):
|
||||
br.submit()
|
||||
return br
|
||||
|
||||
keep_only_tags = [dict(name='div', attrs={'class':['fullstory fullstoryHeader','fullstory fullstoryBody','ft-story-header','ft-story-body','index-detail']})]
|
||||
keep_only_tags = [
|
||||
dict(name='p' , attrs={'class':lambda x: x and 'lastUpdated' in x.split()}),
|
||||
dict(name='div', attrs={'class':lambda x: x and 'syndicationHeadline' in x.split()}),
|
||||
dict(name='p' , attrs={'class':lambda x: x and 'byline' in x.split()}),
|
||||
dict(name='div', attrs={'class':['fullstory fullstoryBody','ft-story-header','ft-story-body','index-detail']})
|
||||
]
|
||||
remove_tags = [
|
||||
dict(name='div', attrs={'id':'floating-con'})
|
||||
dict(name='style', attrs={'id':'antiClickjack'})
|
||||
,dict(name='div', attrs={'id':'floating-con'})
|
||||
,dict(name=['meta','iframe','base','object','embed','link'])
|
||||
,dict(attrs={'class':['storyTools','story-package','screen-copy','story-package separator','expandable-image','promobox']})
|
||||
,dict(name='div', attrs={'class':lambda x: x and 'insideArticleRelatedTopics' in x.split()})
|
||||
|
Loading…
x
Reference in New Issue
Block a user