space is just fine in keywords
This commit is contained in:
parent
c10645f114
commit
3730587937
1 changed files with 3 additions and 1 deletions
|
@ -346,7 +346,9 @@ class IMDb:
|
||||||
soup = BeautifulSoup(self.getKeywords())
|
soup = BeautifulSoup(self.getKeywords())
|
||||||
keywords = []
|
keywords = []
|
||||||
for key in soup('a', {'href': re.compile('^/keyword/')}):
|
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
|
self.keywords = keywords
|
||||||
return self.keywords
|
return self.keywords
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue