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

Want to kickstart your project?Use the new AI Studio to create your code