datopy._media_scrape.get_imdb_id#
- get_imdb_id(
- movie_title: str,
Retrieves the unique IMDb identifier associated with a film or tv show.
- Parameters:
movie_title (str) – Title of film or tv show (sensitive to spelling but not case).
- Returns:
imdb_id – The unique IMDb tt identifier associated with the show.
- Return type:
Examples
>>> from datopy._media_scrape import get_imdb_id >>> movie_title = "the shawshank redemption" >>> tt_id = get_imdb_id(movie_title) >>> tt_id 'tt0111161' >>> movie_title = "ths shukshank redumption" >>> tt_id = get_imdb_id(movie_title) >>> tt_id "No IMDb Identifier found for 'ths shukshank redumption'."