Files
python_skripte/imdb_parsen/main.py
jonnybravo 6678aed520
All checks were successful
test / build-docs (push) Successful in -1m26s
18082025
2025-08-18 16:08:22 +02:00

24 lines
534 B
Python

# print(the_matrix.get('tech'))
from imdb import Cinemagoer
# create an instance of the Cinemagoer class
ia = Cinemagoer()
# get a movie
movie = ia.get_movie('0133093')
# print the names of the directors of the movie
print('Directors:')
for director in movie['directors']:
print(director['name'])
# print the genres of the movie
print('Genres:')
for genre in movie['genres']:
print(genre)
# search for a person name
people = ia.search_person('Mel Gibson')
for person in people:
print(person.personID, person['name'])