From 373058793748364b14d04effb206d5560bcbdaaa Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 19 Jul 2007 15:28:18 +0000 Subject: [PATCH] space is just fine in keywords --- scrapeit/imdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index 0a1aaa4..e66f3d3 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -346,7 +346,9 @@ class IMDb: soup = BeautifulSoup(self.getKeywords()) keywords = [] for key in soup('a', {'href': re.compile('^/keyword/')}): - keywords.append(htmldecode(key.string)) + k = htmldecode(key.string) + k = k.replace(u'\xa0', ' ') + keywords.append(k) self.keywords = keywords return self.keywords