- Notifications
You must be signed in to change notification settings - Fork69
metowolf/qqwry.ipdb
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
纯真数据库 IPIP.net 格式版,精简并匹配为国家、省、市、运营商,已支持 IPv4/IPv6。
版本随上游update.cz88.net 更新。
2024.12.28, CZDB 格式反编译工作已经完成,项目恢复更新
| CDN | URL |
|---|---|
| jsdelivr | https://cdn.jsdelivr.net/npm/qqwry.raw.ipdb/qqwry.ipdb |
| unpkg | https://unpkg.com/qqwry.raw.ipdb/qqwry.ipdb |
原版兼容所有官方 IPDB 格式解析代码,只提供和纯真格式相似的两个解析字段,后面三个字段为兼容占位使用。
| name | info |
|---|---|
country_name | 国家名称,对应纯真国家字段 |
region_name | 区域名称,对应纯真区域字段 |
city_name | 城市名称,空 |
owner_domain | 拥有者域名,空 |
isp_domain | 运营商名称,空 |
| CDN | URL |
|---|---|
| jsdelivr | https://cdn.jsdelivr.net/npm/qqwry.ipdb/qqwry.ipdb |
| unpkg | https://unpkg.com/qqwry.ipdb/qqwry.ipdb |
标准版兼容所有官方 IPDB 格式解析代码,提供与官方每日专业版类似的以下解析字段。
| name | info |
|---|---|
country_name | 国家名称 |
region_name | 区域名称,中国为省份 |
city_name | 城市名称,中国为市级 |
district_name | 区县名称 |
owner_domain | 拥有者域名 |
isp_domain | 运营商名称 |
country_code | 国家代码,ISO3166-1 |
continent_code | 大洲编码 |
以metowolf/ipdb 解析库为例,首先安装依赖并下载标准版数据库
$ yarn add ipdb$ yarn add qqwry.ipdb新建文件index.js
const IPDB = require('ipdb');const qqwry_ipdb = require('qqwry.ipdb');const ipdb = new IPDB(qqwry_ipdb);ipdb.find('183.62.57.1');/*{ data: { country_name: '中国', region_name: '广东', city_name: '广州', owner_domain: '', isp_domain: '电信', ip: '183.62.57.1', bitmask: 24 }, code: 0}*/- 感谢 GitHub Copilot 对反编译代码的支持
- 感谢由ipdb 提供的 IPDB 格式解析解决方案
- 感谢由@ipdb/packer 提供的 IPDB 格式打包解决方案
- 感谢文章IPIP.net 地址库格式分析 提供的格式逆向分析
- 感谢苏卡卡的qqwry-mirror 项目提供的灵感
- 感谢纯真网络提供的免费离线数据库,以及纯真论坛的热心网友们
About
🐈️ 纯真数据库 IPIP.net 格式版,Make qqwry.ipdb Great Again!!!
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.