tighter keyword parsing

This commit is contained in:
j 2007-07-12 19:06:12 +00:00
parent ee5864a99d
commit 23e27d1b36
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ class IMDb:
def parseKeywords(self):
soup = BeautifulSoup(self.getKeywords())
keywords = []
for key in soup('a', {'href': re.compile('/keyword')}):
for key in soup('a', {'href': re.compile('^/keyword/')}):
keywords.append(htmldecode(key.string))
self.keywords = keywords
return self.keywords