!!!IMPORTANT: This repo, with the corresponding PyPI lib, is no longer maintained.
ip.taobao.com
has been shutdown since 2022.3.31 [1].
Geo info retriever for ipv4 address using chinese taobao service.
Python 2.x/3.x Compatible.
Inspired by huacnlee/ip-location.
Retrieve geo info for ip address via ip.taobao.com .
- The official limit: for every user, qps < 10. ref
#encoding=utf8
from ipgeo import ipgeo
info = ipgeo.query('182.138.127.93')
print(info.country) # 中国
print(info.region) # 四川省
print(info.city) # 成都市
print(info.full_name()) # 中国四川省成都市