>>> import ipip
>>> ipip.init('/etc/17monipdb.dat')
>>> ipip.find('211.98.127.102')
'\xe4\xb8\xad\xe5\x9b\xbd\t\xe6\x96\xb0\xe7\x96\x86\t\xe4\xb9\x8c\xe9\xb2\x81\xe6\x9c\xa8\xe9\xbd\x90\t\t\xe9\x93\x81\xe9\x80\x9a'
>>> print ipip.find('211.98.127.102')
中国 新疆 乌鲁木齐 铁通
>>>
-
Notifications
You must be signed in to change notification settings - Fork 0
fengidri/17mon_cpy
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
17mon 的 ip 查询 API. 通过 python 对 C 进行包装, 方便 python 调用. 比纯 python 快
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published