Update WSJ

This commit is contained in:
unkn0w7n 2024-05-18 12:49:44 +05:30
parent 838a056ad2
commit 298f1d7dde

View File

@ -40,6 +40,7 @@ class WSJ(BasicNewsRecipe):
dict(name='panel', attrs={'id':'metadata'}),
dict(name='panel', attrs={'layout':'inline'}),
dict(name='panel', attrs={'embed':'inner-article-ad'}),
dict(name='span', attrs={'embed':'ticker'}),
classes('lamrelated-articles-inset-panel'),
dict(name='p', attrs={'id':[
'keywords', 'orig-pubdate-number', 'type', 'is-custom-flashline', 'grouphed', 'author-ids',
@ -90,6 +91,9 @@ class WSJ(BasicNewsRecipe):
p = time.findParent('div')
if p:
p.name = 'p'
for img in soup.findAll('img', src=True):
if img['src'].endswith('/OR'):
img['src'] = img['src'][:-3]
return soup
if not past_edition: