Here is official page:
https://pypi.org/project/ip2geotools/
https://github.com/tomas-net/ip2geotools
This is my try
..
# pip install ip2geotools
from ip2geotools.databases.noncommercial import DbIpCity
response = DbIpCity.get('165.132.116.105', api_key='free')
print(response)
..
The results :
165.132.116.105
Seodaemun-gu
Seoul
KR
37.5790747
126.9367861
Thank you. ππ»♂️
www.marearts.com
No comments:
Post a Comment