Comments (4)
@54huige
需要定义PHONE_DATA_DIR这个环境变量,才行,在这个变量的目录里面,需要放置phone.dat文件
如果不想设置变量,可以直接修改源代码的https://github.com/xluohome/phonedata/blob/master/phonedata.go#L53
func init() {
//注释掉这几行
//dir := os.Getenv("PHONE_DATA_DIR")
//if dir == "" {
//_, fulleFilename, _, _ := runtime.Caller(0)
//dir = path.Dir(fulleFilename)
//}
var err error
content, err = ioutil.ReadFile("/root/phone.dat") //在这里直接修改为你的dat文件路径,
if err != nil {
panic(err)
}
total_len = int32(len(content))
firstoffset = get4(content[INT_LEN : INT_LEN*2])
}
from phonedata.
@sndnvaps @xluohome 强烈建议增加360接口号段数据, 因为360接口数据较为准确, (虽然一些免费接口号段数据量不会很多) 曾用360号段数据进行过对比, 发现还是360号段归属地准确
这得找@xluohome才行
from phonedata.
from phonedata.
Related Issues (20)
- 17951095856 万州号码 查询不到 HOT 1
- phone.dat数据文件怎么生成的 HOT 1
- 实现了个JAVA版, 已发布到maven**仓库 HOT 1
- 167号段无数据 HOT 2
- 166、167、195等号码段无数据 HOT 3
- 162****3757 not found HOT 1
- cmd/phonedata error HOT 2
- 电信新出193号段可以新增下吗? HOT 1
- 为什么8月份更新的版本数据比6月份更新的少了1千多条? HOT 1
- 如何转为数据库.db文件?
- phone.dat 还在更新吗 HOT 4
- csv有点旧了。
- phone.dat更新 HOT 2
- phone.dat更新问题 HOT 1
- phonedata数据还在更新么 HOT 2
- 可以更新csv文件吗?
- 用java写了个dat和txt文件相互转换的工具类
- try number 19200001234
- 求更新
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phonedata.