kayon / iploc Goto Github PK
View Code? Open in Web Editor NEW每秒百万高性能IP查询库,使用纯真IP库,国内省、市、县,qqwry.dat转换工具:GBK转为UTF-8
License: BSD 3-Clause "New" or "Revised" License
每秒百万高性能IP查询库,使用纯真IP库,国内省、市、县,qqwry.dat转换工具:GBK转为UTF-8
License: BSD 3-Clause "New" or "Revised" License
国内数据格式化到省、市、县 是错误的
你可以用你自己的测试IP试试
Detail{IP:QQWry.IP{0x1, 0x18, 0x29, 0x0}, Start:QQWry.IP{0x1, 0x18, 0x29, 0x0}, End:QQWry.IP{0x1, 0x18, 0x29, 0xff}, Location:QQWry.Location{Country:"内蒙古锡林郭勒盟苏尼特右旗", Region:"联通", Province:"", City:"", County:"", raw:"内蒙古锡林郭勒盟苏尼特右旗 联通"}}
loc.Find("1.24.41.0") 返回 美国 亚太互联网络信息中心(CloudFlare节点)
一些数据会默认不带国家(可能是纯真库的问题),导致后面的省和市直接作为国家。
Example:
ip := "211.93.60.102"
fmt.Println(myloc.IPLoc.Find(ip).Country)
输出结果为:黑龙江省哈尔滨市道外区
please update go.mod
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.