mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update WSJ
This commit is contained in:
parent
838a056ad2
commit
298f1d7dde
@ -40,6 +40,7 @@ class WSJ(BasicNewsRecipe):
|
|||||||
dict(name='panel', attrs={'id':'metadata'}),
|
dict(name='panel', attrs={'id':'metadata'}),
|
||||||
dict(name='panel', attrs={'layout':'inline'}),
|
dict(name='panel', attrs={'layout':'inline'}),
|
||||||
dict(name='panel', attrs={'embed':'inner-article-ad'}),
|
dict(name='panel', attrs={'embed':'inner-article-ad'}),
|
||||||
|
dict(name='span', attrs={'embed':'ticker'}),
|
||||||
classes('lamrelated-articles-inset-panel'),
|
classes('lamrelated-articles-inset-panel'),
|
||||||
dict(name='p', attrs={'id':[
|
dict(name='p', attrs={'id':[
|
||||||
'keywords', 'orig-pubdate-number', 'type', 'is-custom-flashline', 'grouphed', 'author-ids',
|
'keywords', 'orig-pubdate-number', 'type', 'is-custom-flashline', 'grouphed', 'author-ids',
|
||||||
@ -90,6 +91,9 @@ class WSJ(BasicNewsRecipe):
|
|||||||
p = time.findParent('div')
|
p = time.findParent('div')
|
||||||
if p:
|
if p:
|
||||||
p.name = 'p'
|
p.name = 'p'
|
||||||
|
for img in soup.findAll('img', src=True):
|
||||||
|
if img['src'].endswith('/OR'):
|
||||||
|
img['src'] = img['src'][:-3]
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
if not past_edition:
|
if not past_edition:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user