mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
59e8070ef9
commit
cc2757ebd8
@ -233,7 +233,7 @@ class WSJ(BasicNewsRecipe):
|
|||||||
# return self.test_wsj_index()
|
# return self.test_wsj_index()
|
||||||
root = self.index_to_soup(self.wsj_itp_page, as_tree=True)
|
root = self.index_to_soup(self.wsj_itp_page, as_tree=True)
|
||||||
for span in CSSSelect('span.date-date')(root):
|
for span in CSSSelect('span.date-date')(root):
|
||||||
if span.text:
|
if span.text and span.text.strip():
|
||||||
self.timefmt = span.text
|
self.timefmt = span.text
|
||||||
break
|
break
|
||||||
for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root):
|
for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root):
|
||||||
|
@ -191,7 +191,7 @@ class WSJ(BasicNewsRecipe):
|
|||||||
# return self.test_wsj_index()
|
# return self.test_wsj_index()
|
||||||
root = self.index_to_soup(self.wsj_itp_page, as_tree=True)
|
root = self.index_to_soup(self.wsj_itp_page, as_tree=True)
|
||||||
for span in CSSSelect('span.date-date')(root):
|
for span in CSSSelect('span.date-date')(root):
|
||||||
if span.text:
|
if span.text and span.text.strip():
|
||||||
self.timefmt = span.text
|
self.timefmt = span.text
|
||||||
break
|
break
|
||||||
for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root):
|
for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user