From 7cc1e8d19973cf7b431a0dfd8f5bf64e360ecc2d Mon Sep 17 00:00:00 2001 From: Sarah Date: Sun, 20 Feb 2022 19:39:18 +0000 Subject: [PATCH] add imdb utils --- imdb_utils/IMDbUtils.py | 9 +++++++++ imdb_utils/__init__.py | 0 2 files changed, 9 insertions(+) create mode 100644 imdb_utils/IMDbUtils.py create mode 100644 imdb_utils/__init__.py diff --git a/imdb_utils/IMDbUtils.py b/imdb_utils/IMDbUtils.py new file mode 100644 index 0000000..92013d2 --- /dev/null +++ b/imdb_utils/IMDbUtils.py @@ -0,0 +1,9 @@ +from imdb import IMDb + + +def get_movie(imdb_id): + ia = IMDb() + + movie = ia.get_movie(imdb_id) + + return movie diff --git a/imdb_utils/__init__.py b/imdb_utils/__init__.py new file mode 100644 index 0000000..e69de29