diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index 7df5632..f23282c 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -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