A CLI tool for query keyword in China MIIT ICP Website to get ICP Record
Project description
ICPQuery
ICPQuery is a CLI tool for query keyword in China MIIT ICP Website to get ICP Record.
It is also Python library that can be invoked by single async function.
Feature
- The ICP record types can be queried are
domain、APP、FastAPP、MiniAPP. - Keyword to be querying what can be domain name / APP name / natural name.
- Automatically passing click seqence CAPTCHA, based on OpenCV and trained DNN model.
- Terminal-UI for show querying progress and record data tables.
Installation
Install via pypi
The release of icpquery is distributed on PyPi(Python Version >= 3.11).
pip install icpquery
Install from source (whl package)
-
Make sure your system already installed Python >= 3.11 and pdm
-
Download package or clone this repository
-
build and install
cd ICPQuery
pdm install
pdm build
pip install dist/icpquery-xxx.whl
Usage
To show results list with TUI use:
icpquery 'baidu.com'
To output json/plain to stdo use:
icpquery -f json 'baidu.com'
As a library:
from icpquery import icp_query, SearchType
import asyncio
async def main():
results = await icp_query('baidu.com', search_type=SearchType.DOMAIN)
print(results.to_text())
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file icpquery-1.3.0.tar.gz.
File metadata
- Download URL: icpquery-1.3.0.tar.gz
- Upload date:
- Size: 76.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.3 CPython/3.11.14 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42ce3fdffbf445afe1aa5eebaea3748ef7935da4d351cfb06f84bab958f7555a
|
|
| MD5 |
792f64dfce865db5239da02bc5cc25be
|
|
| BLAKE2b-256 |
13c9d228a4937695eabae0b99be5ede04a469d0ce640294c86c1517c087bd996
|
File details
Details for the file icpquery-1.3.0-py3-none-any.whl.
File metadata
- Download URL: icpquery-1.3.0-py3-none-any.whl
- Upload date:
- Size: 76.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.3 CPython/3.11.14 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c34ca7f515bb946b56c04273fc48eae1acc9d831a4f00715dfe6c8b4cad8852a
|
|
| MD5 |
60214e66f34978ab71f7752af60613f4
|
|
| BLAKE2b-256 |
620bc8ccecf5c441d5be8440d3336bb788b08eaecdf514e7351b87eb31727cfd
|