imdby
imdby is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, person, characters, companies, events and news.
Source | Link |
---|---|
PyPI: | https://pypi.org/project/imdby/ |
Repository: | https://github.com/santhoshse7en/imdby/ |
Documentation: | https://santhoshse7en.github.io/imdby_doc/ |
Main features
-
imdby is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, person, characters, companies, events and news.
-
Sentiment Analysis included for IMDb user reviews.
-
written in Python 3 (compatible with Python 2.7)
-
platform-independent
-
can retrieve data from both the IMDb's web server, or a local copy of the database
-
simple and complete API
Installation
Whenever possible, please use the latest version from the repository:
pip install git+https://github.com/santhoshse7en/imdby
But if you want, you can also install the latest release from PyPI:
pip install imdby
Example
Here’s an example that demonstrates how to use imdby:
# create an instance of the IMDb class
from imdb.imdb import IMDb
# create an instance of the IMDb class
ia = IMDb()
# get a movie
cast = ia.full_cast_and_crew('tt4154796')
# print the directors of the movie
print('Directors:')
for director in cast.directors:
print(director)
# search for a person name
people = ia.search_person('Simon Baker')
print(people.person_id, people.person_name)