Query IP geolocation/ISP via real browser interaction on tool.hiofd.com
Project description
IP-hiofd
通过 https://tool.hiofd.com/ip/ 的真实页面交互查询 IP 信息。
输出字段:
- 网络服务商
- 位置(IP归属地)
- 区
- 街道
安装
作为 Python 包安装
pip install ip-hiofd
运行前请确保本机可用 Node.js,并已安装 Playwright 浏览器依赖。
开发环境安装
git clone https://github.com/Qoo-330ml/IP-hiofd
cd IP-hiofd
npm install
npx playwright install chromium
Python 命令行
ip-hiofd 61.175.188.57
ip-hiofd 61.175.188.57 --json
Python 作为库调用
from ip_hiofd import HiofdIpClient
client = HiofdIpClient()
result = client.lookup('61.175.188.57')
print(result.isp, result.location, result.district, result.street)
或快捷函数:
from ip_hiofd.client import lookup_ip
result = lookup_ip('117.152.147.151')
print(result)
目录说明
ip_hiofd/:Python 包ip_hiofd/hiofd_browser.js:底层浏览器自动化脚本(Playwright)ip_hiofd_api.py:兼容旧用法的 Python CLI 封装
备注
该站后端接口对直连请求有风控校验(444),本项目采用“真实页面流程自动化”来保证可用性与结果一致性。
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
ip_hiofd-0.1.0.tar.gz
(4.6 kB
view details)
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 ip_hiofd-0.1.0.tar.gz.
File metadata
- Download URL: ip_hiofd-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dcf8f2266a23195bbfa8711e84313cbe16814d1e86d016b02026637bebbfcdd
|
|
| MD5 |
17c04b33d9dea2ce43ff7dd997fbe525
|
|
| BLAKE2b-256 |
6b72dcea45ab2c1473a5fd607162165f2596ba0e8cdb88bba15bc35c32a9b517
|
File details
Details for the file ip_hiofd-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ip_hiofd-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ba6cf0776463dfcc0c89e0b2004db23b2b5c84e57de1a9900e7b1dfab1e1305
|
|
| MD5 |
e7ae708d872927c6231071ddae2b862f
|
|
| BLAKE2b-256 |
601d12bec5830633f0c5c24ec055239f7adb65b8a359f4857e2ef32cf2a81f71
|