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 ...
541
38
get client city, region, country pythonPYTHON
Click to see more ...
436
23
get latitude and longitude from ip address pythonPYTHON
Click to see more ...
458
21
get ip address pythonPYTHON
Click to see more ...
392
12
get computer name pythonPYTHON
Click to see more ...
1.2K
8
get latitude longitude pythonPYTHON
Click to see more ...
316
7
create array using pythonPYTHON
Click to see more ...
481
7
get client hostname pythonPYTHON
Click to see more ...
351
4
get client country pythonPYTHON
Click to see more ...
382
3
get client region pythonPYTHON
Click to see more ...
320
3