fix imdb link parsing for DoubanMovie
This commit is contained in:
parent
7a088d2a62
commit
dfe0c3b4e2
1 changed files with 3 additions and 0 deletions
|
@ -450,6 +450,9 @@ class DoubanMovieScraper(DoubanScrapperMixin, AbstractScraper):
|
|||
|
||||
imdb_elem = content.xpath(
|
||||
"//div[@id='info']//span[text()='IMDb链接:']/following-sibling::a[1]/text()")
|
||||
if not imdb_elem:
|
||||
imdb_elem = content.xpath(
|
||||
"//div[@id='info']//span[text()='IMDb:']/following-sibling::text()[1]")
|
||||
imdb_code = imdb_elem[0].strip() if imdb_elem else None
|
||||
|
||||
director_elem = content.xpath(
|
||||
|
|
Loading…
Add table
Reference in a new issue