Generation

generate functionSat, 12 Nov 2022

API call to IMDb

def get_movie_rating(movie): url = 'http://www.omdbapi.com/?t=' + movie response = requests.get(url) data = response.json() rating = data['imdbRating'] return rating

Questions about programming?Chat with your personal AI assistant