import json
def fetch_data(url): with request.urlopen(url) as f: d=f.read() return json.loads(d)
Sign in to make a reply
Qihong94
import json
def fetch_data(url): with request.urlopen(url) as f: d=f.read() return json.loads(d)