qqwry.raw.ipdb 2024.12.25 → 2024.12.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/qqwry.ipdb +0 -0
- package/README.md +0 -93
package/package.json
CHANGED
package/qqwry.ipdb
CHANGED
|
Binary file
|
package/README.md
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# qqwry.ipdb
|
|
2
|
-
|
|
3
|
-
纯真数据库 IPIP.net 格式版,精简并匹配为国家、省、市、运营商。
|
|
4
|
-
版本随上游 `update.cz88.net` 更新。
|
|
5
|
-
|
|
6
|
-
> CZDB 格式反编译工作已经完成,项目近期将恢复更新
|
|
7
|
-
|
|
8
|
-
## 标准版
|
|
9
|
-
|
|
10
|
-

|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|CDN|URL|
|
|
15
|
-
|:---:|---|
|
|
16
|
-
|[jsdelivr](https://cdn.jsdelivr.net/npm/qqwry.ipdb/)|https://cdn.jsdelivr.net/npm/qqwry.ipdb/qqwry.ipdb|
|
|
17
|
-
|[unpkg](https://unpkg.com/browse/qqwry.ipdb/)|https://unpkg.com/qqwry.ipdb/qqwry.ipdb|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
标准版兼容所有[官方 IPDB 格式解析代码](https://www.ipip.net/product/client.html),提供与[官方每周高级版](https://www.ipip.net/product/ip.html#ipv4city)相同的五个解析字段。
|
|
21
|
-
|
|
22
|
-
|name|info|
|
|
23
|
-
|:---:|---|
|
|
24
|
-
|`country_name`|国家名称|
|
|
25
|
-
|`region_name`|区域名称,中国为省份|
|
|
26
|
-
|`city_name`|城市名称,中国为市级|
|
|
27
|
-
|`owner_domain`|拥有者域名|
|
|
28
|
-
|`isp_domain`|运营商名称|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
## 原版
|
|
32
|
-
|
|
33
|
-

|
|
34
|
-

|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|CDN|URL|
|
|
38
|
-
|:---:|---|
|
|
39
|
-
|[jsdelivr](https://cdn.jsdelivr.net/npm/qqwry.raw.ipdb/)|https://cdn.jsdelivr.net/npm/qqwry.raw.ipdb/qqwry.ipdb|
|
|
40
|
-
|[unpkg](https://unpkg.com/browse/qqwry.raw.ipdb/)|https://unpkg.com/qqwry.raw.ipdb/qqwry.ipdb|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
**原版兼容所有[官方 IPDB 格式解析代码](https://www.ipip.net/product/client.html),只提供和纯真格式相似的两个解析字段,后面三个字段为兼容占位使用。**
|
|
44
|
-
|
|
45
|
-
|name|info|
|
|
46
|
-
|:---:|---|
|
|
47
|
-
|`country_name`|国家名称,对应纯真国家字段|
|
|
48
|
-
|`region_name`|区域名称,对应纯真区域字段|
|
|
49
|
-
|`city_name`|城市名称,空|
|
|
50
|
-
|`owner_domain`|拥有者域名,空|
|
|
51
|
-
|`isp_domain`|运营商名称,空|
|
|
52
|
-
|
|
53
|
-
## 实例
|
|
54
|
-
|
|
55
|
-
以 [metowolf/ipdb](https://github.com/metowolf/ipdb) 解析库为例,首先安装依赖并下载标准版数据库
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
$ yarn add ipdb
|
|
59
|
-
$ yarn add qqwry.ipdb
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
新建文件 `index.js`
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
const IPDB = require('ipdb');
|
|
66
|
-
const qqwry_ipdb = require('qqwry.ipdb');
|
|
67
|
-
const ipdb = new IPDB(qqwry_ipdb);
|
|
68
|
-
|
|
69
|
-
ipdb.find('183.62.57.1');
|
|
70
|
-
/*
|
|
71
|
-
{
|
|
72
|
-
data: {
|
|
73
|
-
country_name: '中国',
|
|
74
|
-
region_name: '广东',
|
|
75
|
-
city_name: '广州',
|
|
76
|
-
owner_domain: '',
|
|
77
|
-
isp_domain: '电信',
|
|
78
|
-
ip: '183.62.57.1',
|
|
79
|
-
bitmask: 24
|
|
80
|
-
},
|
|
81
|
-
code: 0
|
|
82
|
-
}
|
|
83
|
-
*/
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## 感谢
|
|
87
|
-
|
|
88
|
-
- 感谢由 [ipdb](https://github.com/metowolf/ipdb) 提供的 IPDB 格式解析解决方案
|
|
89
|
-
- 感谢由 [@ipdb/packer](https://github.com/metowolf/ipdb-packer) 提供的 IPDB 格式打包解决方案
|
|
90
|
-
- 感谢文章 [IPIP.net 地址库格式分析](https://i-meto.com/ipdb-database/) 提供的格式逆向分析
|
|
91
|
-
- 感谢苏卡卡的 [qqwry-mirror](https://github.com/SukkaW/qqwry-mirror) 项目提供的灵感
|
|
92
|
-
- 感谢纯真网络提供的[免费离线数据库](http://www.cz88bbs.com/),以及纯真论坛的热心网友们
|
|
93
|
-
|