返回顶部
u

url-toolkitURL工具包

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
205
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

url-toolkit

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.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部