This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests_with_caching | |
import json | |
def get_movies_from_tastedive(movie): | |
baseurl = "https://tastedive.com/api/similar" | |
params_diction = {} | |
params_diction['q'] = movie | |
params_diction['type'] = 'movies' | |
params_diction['limit'] = 5 | |
resp = requests_with_caching.get(baseurl, params=params_diction) | |
#word_d=json.loads(resp.text) |