kendetrics
V2EX  ›  问与答

有没有把 GeoIP 库的 mmdb 转成 QQ 纯真 IP 库格式的轮子?

  •  
  •   kendetrics · Mar 20, 2016 · 5876 views
    This topic created in 3885 days ago, the information mentioned may be changed or developed.

    因为现在用的一个工具只能读纯真库 https://chenze.name/wenjian/QQWry.Dat 发现有一些不准的地方,而且我并不需要纯真库的那个精确度。想用 GeoIP 的免费数据库取代 http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz

    有转化工具可以用吗?命令行的最好, OSX 能跑的

    9 replies  •  2016-05-08 22:25:06 +08:00
    theoractice
    theoractice
    Mar 20, 2016
    1
    kendetrics
    kendetrics
    OP
    Mar 20, 2016
    2
    @theoractice 并没有找到转换工具,免费版数据库下载回来的 IP.class.php 大致看了下似乎是用于操作它自家的 dat 数据库的。有工具页面的地址吗?
    dzxx36gyy
    dzxx36gyy
    Mar 21, 2016
    3
    @kendetrics 建议直接用 ipip 的免费库+解析示例,个人觉得比 maxmind 的准
    theoractice
    theoractice
    Mar 21, 2016
    4
    @kendetrics 其实我就是 LS 的意思,哈哈
    kendetrics
    kendetrics
    OP
    Mar 21, 2016
    5
    @dzxx36gyy
    @theoractice 我用的工具只认纯真库的格式
    theoractice
    theoractice
    Mar 21, 2016
    6
    @kendetrics 业界公认 ipip.net 这个库的国内部分比 GeoIP 和纯真好很多。或许你可以考虑换个工具。
    jrhu05
    jrhu05
    May 8, 2016
    7
    大哥也是做 IP 库的啊,小弟我也是呢,感谢提供的下载方法!方便的话交流学习一下呗, qq : 790112764
    jrhu05
    jrhu05
    May 8, 2016
    8
    我们这边是这么操作的,利用 maxmind 自己给的解析工具取出数据再处理成我们需要的数据格式
    kendetrics
    kendetrics
    OP
    May 8, 2016
    9
    @jrhu05 我不做 IP 库。。只是我用的非常顺手的一个工具用的纯真库,但是作者停止维护了,每次更新库得跑 Windows 虚拟机去更新然后复制文件出来替换,蛋疼得一逼。我估摸着要能把 GeoIP 转过来我就不用这么麻烦地更新了。

    纯真库的更新方法后来我也找到了,不过实在懒得写那个解密工具,你需要的话可以看看 http://microcai.org/2014/05/11/qqwry_dat_download.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   520 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:59 · PVG 03:59 · LAX 11:59 · JFK 14:59
    ♥ Do have faith in what you're doing.