Discuss / Python / 1

import json

def fetch_data(url): with request.urlopen(url) as f: data = f.read() return json.loads(data)


  • 1

Reply