Skip to main content

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 domainAPPFastAPPMiniAPP.
  • 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)

  1. Make sure your system already installed Python >= 3.11 and pdm

  2. Download package or clone this repository

  3. 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())

Release files for icpquery 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for icpquery 1.3.0
File Size Uploaded
icpquery-1.3.0.tar.gz 76.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for icpquery 1.3.0
File Interpreter ABI Platform
icpquery-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 153.1 MB

Release files / icpquery-1.3.0.tar.gz

Download URL icpquery-1.3.0.tar.gz
Size 76.5 MB
Tags Source
SHA-256 checksum
How to use checksums
42ce3fdffbf445afe1aa5eebaea3748ef7935da4d351cfb06f84bab958f7555a
BLAKE2b-256 checksum
How to use checksums
13c9d228a4937695eabae0b99be5ede04a469d0ce640294c86c1517c087bd996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.26.3 CPython/3.11.14 Linux/6.11.0-1018-azure

Release files / icpquery-1.3.0-py3-none-any.whl

Download URL icpquery-1.3.0-py3-none-any.whl
Size 76.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c34ca7f515bb946b56c04273fc48eae1acc9d831a4f00715dfe6c8b4cad8852a
BLAKE2b-256 checksum
How to use checksums
620bc8ccecf5c441d5be8440d3336bb788b08eaecdf514e7351b87eb31727cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.26.3 CPython/3.11.14 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page