2
I have the following python code
import requests
import json
data = requests.get('https://proxycheck.io/v2/42.131.121.100?vpn=1&asn=1')
print(data.text)
That will return:
{
"status": "ok",
"42.131.121.100": {
"continent": "Asia",
"country": "China",
"isocode": "CN",
"latitude": 34.7725,
"longitude": 113.7266,
"proxy": "no",
"type": "Business"
}
}
How do I display only what is in "country"?
How are you indexing the keys if
data.text
is a string?– Lucas