mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix #1495583 [Wall Street Journal recipe not working](https://bugs.launchpad.net/calibre/+bug/1495583)
This commit is contained in:
parent
10b8e5133a
commit
5b606e4b53
@ -154,7 +154,7 @@ class WSJ(JavascriptRecipe):
|
||||
def get_wsj_index(self, browser):
|
||||
# return self.test_wsj_index()
|
||||
ans = {}
|
||||
root = self.index_to_soup('http://online.wsj.com/itp')
|
||||
root = self.index_to_soup('http://online.wsj.com/itp/today')
|
||||
for span in CSSSelect('span.date-date')(root):
|
||||
if span.text:
|
||||
self.timefmt = span.text
|
||||
|
@ -149,7 +149,7 @@ class WSJ(JavascriptRecipe):
|
||||
def get_wsj_index(self, browser):
|
||||
# return self.test_wsj_index()
|
||||
ans = {}
|
||||
root = self.index_to_soup('http://online.wsj.com/itp')
|
||||
root = self.index_to_soup('http://online.wsj.com/itp/today')
|
||||
for span in CSSSelect('span.date-date')(root):
|
||||
if span.text:
|
||||
self.timefmt = span.text
|
||||
|
Loading…
x
Reference in New Issue
Block a user