Skip to content

Instantly share code, notes, and snippets.

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)