python 简单实现ip位置查找
好久没来steem 了 ,今天刚好需要找一个模糊识别ip地址的小工具 就分享出来
用的github大佬写的工具,和自己收集的ip库
github 地址: https://github.com/ipipdotnet/ipdb-python
源码:
import ipdb
db = ipdb.Reader("ip.ipdb")
# print(db.find("2001:250:200::"))
# print(db.find_map("2001:250:200::"))
while(1):
a = input("请输入ip: ")
info = db.find_info(a)
print(info.country_name, info.region_name, info.city_name, info.owner_domain, info.isp_domain, info.latitude,
info.longitude, info.timezone, info.utc_offset)
ip.ipdb 这个自己去下载 运行结果如下:
这么容易的么 准确不
还行 到省级 还能精准到哪里呀 你说呢
技术流 厉害
厉害了
Posted using Partiko Android
Congratulations @webshell! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last post from @steemitboard:
Congratulations @webshell! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last post from @steemitboard:
Congratulations @webshell! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last post from @steemitboard: