将 URL 解析为对应的 IP 地址。当用户提到 URL 转 IP、域名解析 IP、查 IP 时使用。
76
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
将 URL 转换为 IP 地址
解析给定的 URL 并返回对应的 IP 地址。
office/skills/tools/url2ip/
from office.skills.tools import url2ip
ip = url2ip(url='https://www.python-office.com')
print(ip)| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
url | str | 是 | - | 需要转换的 URL 字符串 |
str:解析得到的 IP 地址字符串
from office.skills.tools import url2ip
ip = url2ip(url='https://www.baidu.com')
print(f"百度 IP: {ip}")office.api.tools.url2ip
2b1996b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.