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
import imdb
ia = imdb.IMDb()
code = "2690647"
person = ia.get_person(code)
info = person.default_info
print (person[ 'name' ])
print (info)
|
Output :
Pankaj Tripathi
('main', 'filmography', 'biography')
Another example
from imdb.Person import Person
info = Person.default_info
print (info)
|
Output :
('main', 'filmography', 'biography')
Last Updated :
22 Apr, 2020
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...