Look up IP geolocation, find your public IP, perform reverse DNS, and run bulk IP lookups. Uses free APIs (ip-api.com, ipify) with no API key required. No external dependencies — pure Python. Use when looking up IP address location, finding your public IP, checking ISP/ASN info, doing reverse DNS, or processing lists of IPs for geolocation data.
零依赖查询IP位置、ISP信息和反向DNS。
所有命令均使用 scripts/ip_geo.py。
bash
python3 scripts/ip_geo.py lookup 8.8.8.8
python3 scripts/ip_geo.py lookup 8.8.8.8 1.1.1.1 9.9.9.9
python3 scripts/ip_geo.py lookup 8.8.8.8 --json
返回:国家、地区、城市、邮政编码、坐标、时区、ISP、组织、AS号和反向DNS。
bash
python3 scripts/ip_geo.py myip
python3 scripts/ip_geo.py myip --json
检测本机公网IP并执行完整的地理定位查询。
bash
python3 scripts/ip_geo.py bulk --input ips.txt
python3 scripts/ip_geo.py bulk --input ips.txt --json --output results.json
cat ips.txt | python3 scripts/ip_geo.py bulk --input -
通过ip-api.com批量接口每批最多处理100个IP。输入文件:每行一个IP,以#开头的行将被跳过。
每次查询返回:国家、国家代码、地区、地区名称、城市、邮政编码、纬度、经度、时区、ISP、组织、AS号(ASN)以及反向DNS(通过本地套接字)。
免费版ip-api.com:单次查询每分钟45次请求,批量查询每分钟15次请求。脚本会在请求之间自动限速。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 ip-geo-toolkit-1776104222 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 ip-geo-toolkit-1776104222 技能
skillhub install ip-geo-toolkit-1776104222
文件大小: 3.98 KB | 发布时间: 2026-4-17 15:06