Query ICP beian like whois
Project description
beian
Query ICP beian like whois
Query ICP registration info from MIIT's official system. Solves CAPTCHA automatically.
Install
uvx beian --help
Or install permanently:
uv tool install beian
Usage
# ICP filing (default)
beian baidu.com
beian "北京百度网讯科技有限公司"
# ICP license (增值电信业务经营许可证)
beian --license "小米科技有限责任公司"
# App / miniprogram / quick app
beian --app "微信"
beian --miniprogram "人民法院在线服务"
beian --quickapp "计算器"
# Batch query
beian baidu.com qq.com taobao.com
# JSON output
beian --raw baidu.com
# Screenshot (ICP filing only)
beian --screenshot baidu.com
# Verbose progress
beian -v baidu.com
# Custom retry count
beian --retry 10 "小米科技有限责任公司"
Query Types
| Flag | Type | Source |
|---|---|---|
| (default) | ICP filing — website (备案) | beian.miit.gov.cn |
--app |
ICP filing — app (备案) | beian.miit.gov.cn |
--miniprogram |
ICP filing — miniprogram (备案) | beian.miit.gov.cn |
--quickapp |
ICP filing — quick app (备案) | beian.miit.gov.cn |
--license |
ICP license (许可证) | tsm.miit.gov.cn |
ICP License Features
The --license query automatically fetches:
- License info (许可证信息)
- Business types and scope (业务种类及覆盖范围)
- Authorization info (授权信息)
- Annual report (年报公示)
How It Works
ICP filing: Uses Playwright to control a headless browser, solves slider CAPTCHA via gap detection algorithm (~67% first-try success rate).
ICP license: Uses ddddocr with edge enhancement preprocessing to solve text CAPTCHA (~12% per attempt, ~100% with retries).
Development
uv sync
uv run python -m beian.cli --help
License
GPL 2.0 or later
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 beian-0.1.1.tar.gz.
File metadata
- Download URL: beian-0.1.1.tar.gz
- Upload date:
- Size: 4.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80b1535c74c10ec9f3c384b97e98ba7e8d2b39561621274141bea74b45748e32
|
|
| MD5 |
fa8f2476d6f800b6953d5fb3851ec1bd
|
|
| BLAKE2b-256 |
e8c937d03afb8f3b35d31cb1fa5a597d178dfce02b303d617eb998a2e33c6d47
|
File details
Details for the file beian-0.1.1-py3-none-any.whl.
File metadata
- Download URL: beian-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ef03b50eea68a1cef0ccd8ee6867e4888d622a697c604e96b9e3111ea9b572e
|
|
| MD5 |
90efffc0d9b398f4b15804bbae43e9c1
|
|
| BLAKE2b-256 |
f025e731b4c768cb5fe341501d732fd95dc1987dee7282a063b134604ea9b590
|