Welcome aboard! We are happy you are here and wish you good net-raft!
import requests
region = requests.get('http://ipinfo.io')
data = json.loads(region.text)
print (data['region'])
// import json is needed yet
import requests
import json
region = requests.get('http://ipinfo.io')
data = json.loads(region.text)
print (data['region'])
The most helpful PYTHON solutions
how to get client ip address using python ?PYTHON Click to see more ... 336 38