Saturday, September 6, 2025
HomeLanguagesPython IMDbPY – Default info of Movie object

Python IMDbPY – Default info of Movie object

In this article we will see how we can achieve the set of information which retrieved by default by get_movie method, with the help of get_movie_infoset we can know all the information that we can achieve of the movie. 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 : movie.default_info

Here movie is imdb Movie 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 = "1187043"
    
# searching the Id
movie = ia.get_movie(code)
  
# getting default info
info = movie.default_info
  
# printing movie title
print(movie['title'])
  
# printing the info
print(info)


Output :

3 Idiots
('main', 'plot')

Another example




# importing the module
import imdb
   
# creating instance of IMDb
ia = imdb.IMDb()
   
# ID
code = "4434004"
    
# searching the Id
movie = ia.get_movie(code)
  
# getting default info
info = movie.default_info
  
# printing movie title
print(movie['title'])
  
# printing the info
print(info)


Output :

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

Most Popular

Dominic
32270 POSTS0 COMMENTS
Milvus
82 POSTS0 COMMENTS
Nango Kala
6639 POSTS0 COMMENTS
Nicole Veronica
11803 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11869 POSTS0 COMMENTS
Shaida Kate Naidoo
6752 POSTS0 COMMENTS
Ted Musemwa
7029 POSTS0 COMMENTS
Thapelo Manthata
6704 POSTS0 COMMENTS
Umr Jansen
6721 POSTS0 COMMENTS