tighter keyword parsing
This commit is contained in:
parent
ee5864a99d
commit
23e27d1b36
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue