Skip to main content

Query ICP beian like whois

Project description

beian

Query ICP beian like whois

vibed

Query ICP registration info from MIIT's official system. Solves CAPTCHA automatically.

Install

uvx beian

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beian-0.1.0.tar.gz (62.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beian-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file beian-0.1.0.tar.gz.

File metadata

  • Download URL: beian-0.1.0.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • 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

Hashes for beian-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75705d2a1cea075af7f534b3425b2d0f677627f54ac45226bf3070514dfd4044
MD5 55a32199f04ef1f748bd8f77660518fa
BLAKE2b-256 880c94bfbb9a41c77cde1e280fd9e14c73ae6f83b794be2f0258c1f1c31a3af5

See more details on using hashes here.

File details

Details for the file beian-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: beian-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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

Hashes for beian-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61ea8a06e6eef0a38e1c0837dd04c67408e91899d33ca8e777dd391ba904cc9c
MD5 4120fce4258e796edd582bfde263196e
BLAKE2b-256 8ca72983a89c3add657d18dd842f0cc1e23e506caeb742a47459cb3c4b7c3370

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page