📜  Python IMDbPY - 获取该系列的情节大纲

📅  最后修改于: 2022-05-13 01:55:16.607000             🧑  作者: Mango

Python IMDbPY - 获取该系列的情节大纲

在本文中,我们将了解如何获得该系列的情节大纲。情节大纲是讲述故事的散文,可以变成剧本。有时因其长度而被称为“一页”。它通常比标准概要更长、更详细,标准概要通常只有一两段,但比处理或步骤大纲更短、更详细。

下面是实现

# importing the module
import imdb
  
# creating instance of IMDb
ia = imdb.IMDb()
  
# id
code = "6077448"
  
# getting information
series = ia.get_movie(code)
  
# getting plot outline of the series
outline = series.data['plot outline']
  
# printing the object i.e name
print(series)
  
# print the outline
print(outline)

输出 :

Sacred Games
Sartaj Singh, a Mumbai police officer, receives an anonymous phone call from a gangster who threatens to blow up the entire city. Amid the corrupt standards of Indian law enforcement begins a battle between a 'nobody' cop and ruthless gangster who perceives (sometimes) himself to be a God.

另一个例子

# importing the module
import imdb
  
# creating instance of IMDb
ia = imdb.IMDb()
  
# id
code = "6473300"
  
# getting information
series = ia.get_movie(code)
  
# getting plot outline of the series
outline = series.data['plot outline']
  
# printing the object i.e name
print(series)
  
# print the outline
print(outline)

输出 :