mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
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:
parent
c11a291925
commit
7158d21c93
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user