Tutorial:
https://stackoverflow.com/questions/24678308/how-to-find-location-with-ip-address-in-python
To obtain IP of ourselves, we can visit:
1 | curl https://api.ipify.org |
To get geo info of our IP, visit:
1 | curl https://ipinfo.io | jq .country |
TO get geo info of any IP, use:
https://pypi.org/project/IP2Location/
https://ip2location-python.readthedocs.io/en/latest/quickstart.html