Tuesday, November 19, 2024
Google search engine
HomeLanguagesPython IMDbPY – Person info set

Python IMDbPY – Person info set

IMDb data base have every information of the person i.e person having what awards, biography etc but in order to retrieve them problem occur as there will be lots of web pages which can be both time-and bandwidth-consuming, especially if you’re interested in only a small part of the information.

If we want to fetch only specific information we can fetch it by passing an optional information parameter to the get_person method. In order to get information set of IMDb Person data set we will use get_person_infoset method.

Syntax : imdb_object.get_person_infoset()

Argument : It takes no argument.

Return : It return list.

Below is the implementation




# importing the module
import imdb
   
# creating instance of IMDb
ia = imdb.IMDb()
   
# getting the person info set of data base
info = ia.get_person_infoset()
   
# printing the list 
for element in info:
    print(element)


Output :

awards
biography
filmography
genres links
keywords links
main
news
official sites
other works
publicity

Dominic Rubhabha-Wardslaus
Dominic Rubhabha-Wardslaushttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Recent Comments