📜  Python IMDbPY – 获取该系列的情节

📅  最后修改于: 2022-05-13 01:54:38.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 of the series
plot = series.data['plot']
  
# printing the object i.e name
print(series)
  
# print the plot
print(plot)

输出 :

Sacred Games
['A link in their pasts leads an honest cop to a fugitive gang boss, whose cryptic warning spurs the officer on a quest to save Mumbai from cataclysm.', "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.::Cinema Theories", "Set in Mumbai, _Sacred Games_ (qv) delves into the city's intricate web of organized crime, corruption, politics and espionage that lie beneath India's economic renaissance. It is an epic masterwork of exceptional richness and power that interweaves the lives of the privileged, the famous, the wretched and the bloodthirsty.::ahmetkozan", 'Sartaj Singh a troubled police officer in Mumbai gets a call from gangster Ganesh Gaitonde who was missing for the last 16 years.He tells Sartaj that he has only 25 days to save Mumbai. Sartaj digs his past as to what made him a powerful gangster where he is helped by RNA officer Anjali Mathur.::alex.mjacko@gmail.com']

另一个例子

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

输出 :

Money Heist
['An unusual group of robbers attempt to carry out the most perfect robbery in Spanish history - stealing 2.4 billion euros from the Royal Mint of Spain.']