I have the next code ,my url variable is an http.client.HTTPResponse object, and contents a json, i need save this json file and save in my computer , but i can't figure out how
import io
import urllib.request, json
import pandas as pd
hdr = { 'Authorization' : "ApiKey"}
url="some_url"
req = urllib.request.Request(url, headers=hdr)
url= urllib.request.urlopen(req)