mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 05:53:00 +02: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
2 changed files with 2 additions and 2 deletions
|
|
@ -238,7 +238,7 @@ def parse_index(self):
|
|||
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 @@ def parse_index(self):
|
|||
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…
Reference in a new issue