闲社服务运行正常AI智能体自动化平台
u

URL工具包

技能标识:url-toolkit

URL encoding, decoding, parameter parsing, and URL manipulation toolkit for developers.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

URL工具包

URL 工具包

为开发者提供的全面URL操作工具。

功能特性

  • - 编码 - 对URL进行编码(百分比编码)
  • 解码 - 对URL进行解码
  • 解析 - 将URL解析为各个组成部分(协议、主机、路径、查询参数等)
  • 查询参数解析 - 将查询字符串解析为键值对
  • 查询参数构建 - 从键值对构建查询字符串

使用方法

bash
python3 skills/url-toolkit/scripts/url_toolkit.py <操作> [选项]

操作指令

操作描述
encode对字符串进行URL编码
decode
对字符串进行URL解码 | | parse | 将URL解析为组成部分 | | query-parse | 将查询字符串解析为JSON格式 | | query-build | 从JSON构建查询字符串 |

选项参数

选项类型默认值描述
--input字符串-输入字符串或URL
--full
布尔值 | false | 完全编码(所有字符)与安全编码 |

示例

bash

URL编码


python3 skills/url-toolkit/scripts/url_toolkit.py encode --input hello world

输出: {success: true, result: hello%20world}

URL解码

python3 skills/url-toolkit/scripts/url_toolkit.py decode --input hello%20world

输出: {success: true, result: hello world}

解析URL

python3 skills/url-toolkit/scripts/url_toolkit.py parse --input https://example.com:8080/path?q=test&id=123#section

输出: {success: true, result: {scheme: https, host: example.com, ...}}

解析查询字符串

python3 skills/url-toolkit/scripts/url_toolkit.py query-parse --input q=test&id=123&name=hello+world

输出: {success: true, result: {q: test, id: 123, name: hello world}}

构建查询字符串

python3 skills/url-toolkit/scripts/url_toolkit.py query-build --input {q:test,id:123,name:hello world}

输出: {success: true, result: q=test&id=123&name=hello%20world}

应用场景

  1. 1. API开发 - 对URL参数进行编码/解码
  2. 网页抓取 - 解析URL并提取组成部分
  3. 调试排查 - 检查查询参数
  4. URL构建 - 从组成部分构建URL
  5. 数据处理 - 清理和规范化URL

当前状态

已准备好进行测试。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 url-toolkit-1776064861 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 url-toolkit-1776064861 技能

通过命令行安装

skillhub install url-toolkit-1776064861

下载

⬇ 下载 url-toolkit v1.0.0(免费)

文件大小: 3.42 KB | 发布时间: 2026-4-14 10:15

v1.0.0 最新 2026-4-14 10:15
Initial release of url-toolkit.

- Provides URL encoding and decoding functions.
- Parses URLs into components (scheme, host, path, etc.).
- Parses query strings into key-value pairs.
- Builds query strings from JSON key-value input.
- Includes command-line usage examples for each action.
- Requires Python 3 to run.
返回顶部