mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
64289d3260
@ -44,6 +44,10 @@ class ft(BasicNewsRecipe):
|
|||||||
classes('in-article-advert')
|
classes('in-article-advert')
|
||||||
]
|
]
|
||||||
|
|
||||||
|
def get_cover_url(self):
|
||||||
|
soup = self.index_to_soup('https://www.frontpages.com/financial-times/')
|
||||||
|
return 'https://www.frontpages.com' + soup.find('img', attrs={'id':'giornale-img'})['src']
|
||||||
|
|
||||||
# needs_subscription = 'optional'
|
# needs_subscription = 'optional'
|
||||||
#
|
#
|
||||||
# def get_browser(self, *args, **kw):
|
# def get_browser(self, *args, **kw):
|
||||||
|
@ -55,6 +55,10 @@ class WSJ(BasicNewsRecipe):
|
|||||||
.sub, em, i { color: #202020; }
|
.sub, em, i { color: #202020; }
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
def get_cover_url(self):
|
||||||
|
soup = self.index_to_soup('https://www.frontpages.com/the-wall-street-journal/')
|
||||||
|
return 'https://www.frontpages.com' + soup.find('img', attrs={'id':'giornale-img'})['src']
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name=['h1', 'h2']),
|
dict(name=['h1', 'h2']),
|
||||||
dict(attrs={'aria-describedby':'big-top-caption'}),
|
dict(attrs={'aria-describedby':'big-top-caption'}),
|
||||||
|
@ -55,6 +55,10 @@ class WSJ(BasicNewsRecipe):
|
|||||||
.sub, em, i { color: #202020; }
|
.sub, em, i { color: #202020; }
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
def get_cover_url(self):
|
||||||
|
soup = self.index_to_soup('https://www.frontpages.com/the-wall-street-journal/')
|
||||||
|
return 'https://www.frontpages.com' + soup.find('img', attrs={'id':'giornale-img'})['src']
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name=['h1', 'h2']),
|
dict(name=['h1', 'h2']),
|
||||||
dict(attrs={'aria-describedby':'big-top-caption'}),
|
dict(attrs={'aria-describedby':'big-top-caption'}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user