I tried to use api of this site(https://ipstack.com/) and wrote code bellow:
r = requests.get(r'http://api.ipstack.com/check?access_key=key')
j = json.loads(r.text)
lat = j['latitude']
lon = j['longitude']
print(lat, lon)
This code gives me wrong location, it right defines city, but area is invalid. How can i get my real location?