From 13e3d2c6101e15b3aa5a02b96fdf33ed9550e877 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Feb 2010 11:58:04 -0700 Subject: [PATCH] Fix WSJ --- resources/recipes/wsj.recipe | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/recipes/wsj.recipe b/resources/recipes/wsj.recipe index 3ced77023d..835f660b0b 100644 --- a/resources/recipes/wsj.recipe +++ b/resources/recipes/wsj.recipe @@ -69,8 +69,10 @@ class WallStreetJournal(BasicNewsRecipe): soup = self.wsj_get_index() year = strftime('%Y') - for x in soup.findAll('td', attrs={'class':'b14'}): + for x in soup.findAll('td', height='25', attrs={'class':'b14'}): txt = self.tag_to_string(x).strip() + txt = txt.replace(u'\xa0', ' ') + txt = txt.encode('ascii', 'ignore') if year in txt: self.timefmt = ' [%s]'%txt break