diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 64bc41ab24..169f1afff7 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -233,7 +233,7 @@ class WSJ(BasicNewsRecipe): # return self.test_wsj_index() root = self.index_to_soup(self.wsj_itp_page, as_tree=True) for span in CSSSelect('span.date-date')(root): - if span.text: + if span.text and span.text.strip(): self.timefmt = span.text break for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root): diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index cefe94e61c..d78f91130f 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -191,7 +191,7 @@ class WSJ(BasicNewsRecipe): # return self.test_wsj_index() root = self.index_to_soup(self.wsj_itp_page, as_tree=True) for span in CSSSelect('span.date-date')(root): - if span.text: + if span.text and span.text.strip(): self.timefmt = span.text break for a in CSSSelect('div.itpSectionHeaderPdf a[href]')(root):