From c862d7f50bcfe6be851a0e74c2d2d7abdfb31ea4 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 30 Jul 2007 12:02:30 +0000 Subject: [PATCH] one more place with xa0 --- scrapeit/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index b6fb00a..1ba7312 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -272,7 +272,7 @@ class IMDb: soup = BeautifulSoup(data) cast = soup('table', {'class': 'cast'}) if cast: - cast = str(cast[0]) + cast = str(cast[0]).replace(u'\xa0', ' ') names = re.compile('(.*?).*?(.*?)').findall(cast) for name in names: real_name = name[0]