In this article we will see how we can achieve the set of information which retrieved by default by get_company
method, with the help of get_company_infoset
we can know all the information that we can achieve of the company. 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 : company.default_info
Here movie is imdb Company object
Argument : It takes no argument
Return : It return list
Below is the implementation
import imdb
ia = imdb.IMDb()
code = "0051941"
company = ia.get_company(code)
info = company.default_info
print (company[ 'name' ])
print (info)
|
Output :
Marvel Studios
('main', )
Another example
import imdb
ia = imdb.IMDb()
code = "0022125"
company = ia.get_company(code)
info = company.default_info
print (company[ 'name' ])
print (info)
|
Output :
Pixel
('main', )
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
22 Apr, 2020
Like Article
Save Article