In [1]:
import requests
import json
import pprint
params = {}
params["user_id"] = 1
params["recent_interactions"] = "6023"
params["limit"] = 4
params["client"] = "reuters"
r = requests.get("http://127.0.0.1:5000/recommend",params=params)
print r.status_code
j = json.loads(r.text)
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(j)
In [ ]: