Hi, my friends, please excuse me, you could help me iterate on this json that returns the request I made with requests but I already tried with items () and values () but nothing else sends me errors or at least tell me what I'm doing wrong was for example tried to access User-Agent
Try now with
for i in json:
for j in i:
and nothing
Also try the way
for key,value in json.items()
for key2,value2 in value.items()
Here I leave the dictionary
json = {
"args": {
"curso": "python",
"nombre": "eduardo"
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Connection": "close",
"Host": "httpbin.org",
"User-Agent": "python-requests/2.21.0"
},
"origin": "201.141.214.165",
"url": "http://prueba.html"
}
Thank you very much and greetings