360 Secure SkillHub
360 安全技能中心

URL Toolkit

该 Skill 提供一个本地 Python 脚本,通过 encode、decode、parse、query-parse、query-build 五个动作完成 URL 百分号编解码、URL 组件解析、查询字符串与键值对互转,结果以 JSON 返回。全部处理在本地命令行完成,不需要网络或外部服务,供开发者在参数处理、爬虫解析、调试和 URL 规范化等场景调用,自述状态为待测试。

分类:效率
freeter226
freeter226
热度 32.47
最近更新 2026-05-11 17:35:38

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add freeter226/url-toolkit
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
url-toolkit
description
URL encoding, decoding, parameter parsing, and URL manipulation toolkit for developers.
metadata
{"openclaw":{"emoji":"🔗","requires":{"bins":["python3"]}}}

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

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

# 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.