Friday, September 19, 2025
HomeLanguagesPython IMDbPY – Default info of Person object

Python IMDbPY – Default info of Person object

In this article we will see how we can achieve the set of information which retrieved by default by get_person method, with the help of get_person_infoset we can know all the information that we can achieve of the person. But all the information is not extracted as it will be time consuming process.

In order to know the default information that a movie object extracts we will use default_info method.

Syntax : person.default_info

Here movie is imdb Person object

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()
   
# ID
code = "2690647"
    
# searching the Id
person = ia.get_person(code)
  
# getting default info
info = person.default_info
  
# printing name
print(person['name'])
  
# printing the info
print(info)


Output :

Pankaj Tripathi
('main', 'filmography', 'biography')

Another example




# importing movie
from imdb.Person import Person
  
# getting default info
info = Person.default_info
  
# printing the info
print(info)


Output :

('main', 'filmography', 'biography')
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32301 POSTS0 COMMENTS
Milvus
84 POSTS0 COMMENTS
Nango Kala
6666 POSTS0 COMMENTS
Nicole Veronica
11840 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11898 POSTS0 COMMENTS
Shaida Kate Naidoo
6781 POSTS0 COMMENTS
Ted Musemwa
7056 POSTS0 COMMENTS
Thapelo Manthata
6739 POSTS0 COMMENTS
Umr Jansen
6744 POSTS0 COMMENTS