# req = requests.Request(url=url, headers=headers, data=data) # html = requests.get(req) # print(html.json()) req = request.Request(url) req.headers = headers # req.data = bytes(data) html = urllib.request.urlopen(req) print(type(html)) # print(html.read()) result = json.load(html) for item in result['data']['result']: # map = item['result'] j = 0 for i in item.split('|'): print(j, i) j += 1 # print(item.split('|'))