how to handle a json that contains multiple results using python

0

Hello, I'm doing a python script that takes the name of a movie and returns some data to the user (title, year etc). I'm using api omdbapi, but my question is not with regards to it but how to handle the following json link , when I use the parameter t it returns me the data of a movie only then it is good however when I use s it returns several results and I am having problems on how to print this. br> cod: link

    
asked by anonymous 18.01.2018 / 23:52

1 answer

1

Only change line 49:

for i in resposta.get('Search'):
    print('teste')
    print_movie_data(i)
    
19.01.2018 / 02:27