From a94250fba12711a7ff77c9597601d1a5b9b3c48f Mon Sep 17 00:00:00 2001 From: Aashutosh Kattel <90999891+aashu-kattel@users.noreply.github.com> Date: Sun, 2 Oct 2022 18:39:08 +0545 Subject: [PATCH] .py prog to get geo-coordinates from ip --- Python/geolocator_ip.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Python/geolocator_ip.py diff --git a/Python/geolocator_ip.py b/Python/geolocator_ip.py new file mode 100644 index 0000000..1bfe8a2 --- /dev/null +++ b/Python/geolocator_ip.py @@ -0,0 +1,7 @@ +import geocoder + +g=geocoder.ip('120.89.104.47') # you might also try - 147.229.2.90 - this ip address + +addr=g.latlng #this gives latitude and longitude which you can copy and paste on google earth + +print(addr)