WSJ changes its index page markup a bit

Fixes #1871704 [WSJ fetch news: no articles found](https://bugs.launchpad.net/calibre/+bug/1871704)
This commit is contained in:
Kovid Goyal 2020-04-09 08:40:03 +05:30
parent c11a291925
commit 7158d21c93
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ class WSJ(BasicNewsRecipe):
break
feeds = []
for a in CSSSelect('.WSJTheme--nav-container--sPVwT3Fi .WSJTheme--section-link--XGDsdx5q'):
for a in CSSSelect('.WSJTheme--nav-container--2qF6xQnZ .WSJTheme--section-link--3VznjgTM'):
frontpage = a.get('href').endswith('frontpage')
title = self.tag_to_string(a).capitalize().strip().replace('U.s.', 'U.S.')
if not title:

View File

@ -238,7 +238,7 @@ class WSJ(BasicNewsRecipe):
break
feeds = []
for a in CSSSelect('.WSJTheme--nav-container--sPVwT3Fi .WSJTheme--section-link--XGDsdx5q'):
for a in CSSSelect('.WSJTheme--nav-container--2qF6xQnZ .WSJTheme--section-link--3VznjgTM'):
frontpage = a.get('href').endswith('frontpage')
title = self.tag_to_string(a).capitalize().strip().replace('U.s.', 'U.S.')
if not title: