返回顶部
u

url-toolkit

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

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

url-toolkit

# URL Toolkit A comprehensive URL manipulation tool for developers. ## Features - **Encode** - Encode URL (percent encoding) - **Decode** - Decode URL - **Parse** - Parse URL into components (scheme, host, path, query, etc.) - **Query Parse** - Parse query string into key-value pairs - **Query Build** - Build query string from key-value pairs ## Usage ```bash python3 skills/url-toolkit/scripts/url_toolkit.py <action> [options] ``` ## Actions | Action | Description | |--------|-------------| | `encode` | URL encode a string | | `decode` | URL decode a string | | `parse` | Parse URL into components | | `query-parse` | Parse query string to JSON | | `query-build` | Build query string from JSON | ## Options | Option | Type | Default | Description | |--------|------|---------|-------------| | `--input` | string | - | Input string or URL | | `--full` | bool | false | Full encoding (all chars) vs safe encoding | ## Examples ```bash # URL encode python3 skills/url-toolkit/scripts/url_toolkit.py encode --input "hello world" # Output: {"success": true, "result": "hello%20world"} # URL decode python3 skills/url-toolkit/scripts/url_toolkit.py decode --input "hello%20world" # Output: {"success": true, "result": "hello world"} # Parse URL python3 skills/url-toolkit/scripts/url_toolkit.py parse --input "https://example.com:8080/path?q=test&id=123#section" # Output: {"success": true, "result": {"scheme": "https", "host": "example.com", ...}} # Parse query string python3 skills/url-toolkit/scripts/url_toolkit.py query-parse --input "q=test&id=123&name=hello+world" # Output: {"success": true, "result": {"q": "test", "id": "123", "name": "hello world"}} # Build query string python3 skills/url-toolkit/scripts/url_toolkit.py query-build --input '{"q":"test","id":123,"name":"hello world"}' # Output: {"success": true, "result": "q=test&id=123&name=hello%20world"} ``` ## Use Cases 1. **API development** - Encode/decode URL parameters 2. **Web scraping** - Parse URLs and extract components 3. **Debugging** - Inspect query parameters 4. **URL building** - Construct URLs from components 5. **Data processing** - Clean and normalize URLs ## Current Status Ready for testing.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

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

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

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

通过命令行安装

skillhub install url-toolkit-1776064861

下载 Zip 包

⬇ 下载 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-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部