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):
|
def parseKeywords(self):
|
||||||
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))
|
keywords.append(htmldecode(key.string))
|
||||||
self.keywords = keywords
|
self.keywords = keywords
|
||||||
return self.keywords
|
return self.keywords
|
||||||
|
|
Loading…
Reference in a new issue