<jupyter_start><jupyter_text>Table of Contents<jupyter_code>import imdb

IMDB = imdb.IMDb()

def print_actors(film_name):
    search_results = IMDB.search_movie(film_name)
    assert search_results, 'Search failed'
    print('Showing people in: ', search_results[0]['long imdb title'])
    movie_id = search_results[0].movieID
    movie = IMDB.get_movie(movie_id)
    assert movie, 'Get movie failed'
    cast = movie.get('cast')
    print('')
    for actor in cast:
        if actor.currentRole:
            character = actor.currentRole
        else:
            character = actor.notes
        if character and 'uncredited' not in character:
            print('{}, {}'.format(actor['name'], character))<jupyter_output><empty_output><jupyter_text>The purpose of this notebook is to fetch actors and characters.<jupyter_code>print_actors('star wars: episode III')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11073825503355705, 'fraction_numerical': 0.0022371364653243847, 'mean_word_length': 3.9175824175824174, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '546270', 'license': 'Apache-2.0', 'n_tokens_mistral': 285, 'n_tokens_neox': 278, 'n_words': 66, 'path': 'app/notebooks/get_imdb_actor_list.ipynb', 'repo_name': 'DanFu09/esper', 'size': '894'}