From 298f1d7dde623081e627ecce9af1fa6d545ce614 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Sat, 18 May 2024 12:49:44 +0530 Subject: [PATCH] Update WSJ --- recipes/wsj.recipe | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 1bc6435196..eb8a745928 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -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: