Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
HG-ha authored Sep 9, 2023
1 parent df16e70 commit 47385c0
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,49 +23,49 @@ asyncio.run(main("微信"))

### 使用icpApi查询接口
##### 1. 支持四种类型查询:
- 网站: web
- APP: app
- 小程序: mapp
- 快应用: kapp
- 网站: web
- APP: app
- 小程序: mapp
- 快应用: kapp
##### 2. 请求
1. GET
- URL: http://0.0.0.0:16181/query/{type}?search={name}
- 示例: 查询域名 baidu.com 备案信息
```
curl http://127.0.0.1:16181/query/web?search=baidu.com
```
- 示例: 根据网站的备案号 京ICP证030173号 查询备案信息
```
curl http://127.0.0.1:16181/query/web?search=京ICP证030173号
```
2. POST
- headers : {"Content-Type": "application/json"}
- URL: http://0.0.0.0:16181/query/{type}
- Body: {"search":{name}}
- 示例: 查询域名 baidu.com 备案信息
```
curl -X POST -H "Content-Type: application/json" -d '{"search":"baidu.com"}' http://127.0.0.1:16181/query/web
```
- 示例: 根据网站的备案号 京ICP证030173号 查询备案信息
```
curl -X POST -H "Content-Type: application/json" -d '{"search":"京ICP证030173号"}' http://127.0.0.1:16181/query/web
```

##### 3. Linux 运行icpApi
1. 源代码运行
``` shell
python3 icpApi.py
1. GET
- URL: http://0.0.0.0:16181/query/{type}?search={name}
- 示例: 查询域名 baidu.com 备案信息
```
2. 独立程序运行
``` shell
./icpApi.bin
curl http://127.0.0.1:16181/query/web?search=baidu.com
```
##### 4. Windows 运行icpApi
1. 源代码运行
``` cmd
python3 icpApi.py
- 示例: 根据网站的备案号 京ICP证030173号 查询备案信息
```
curl http://127.0.0.1:16181/query/web?search=京ICP证030173号
```
2. POST
- headers : {"Content-Type": "application/json"}
- URL: http://0.0.0.0:16181/query/{type}
- Body: {"search":{name}}
- 示例: 查询域名 baidu.com 备案信息
```
curl -X POST -H "Content-Type: application/json" -d '{"search":"baidu.com"}' http://127.0.0.1:16181/query/web
```
- 示例: 根据网站的备案号 京ICP证030173号 查询备案信息
```
curl -X POST -H "Content-Type: application/json" -d '{"search":"京ICP证030173号"}' http://127.0.0.1:16181/query/web
```
2. 独立程序直接双击运行
##### 3. Linux 运行icpApi
1. 源代码运行
``` shell
python3 icpApi.py
```
2. 独立程序运行
``` shell
./icpApi.bin
```
##### 4. Windows 运行icpApi
1. 源代码运行
``` cmd
python3 icpApi.py
```
2. 独立程序直接双击运行


### 请喝茶吗
Expand Down

0 comments on commit 47385c0

Please sign in to comment.