name: url-shortener description: 使用各种服务缩短URL,并为短链接生成二维码。 metadata: short-description: 缩短URL source: repository: https://github.com/ellisonleao/pyshorteners license: MIT
URL短链接生成工具
描述
使用多种服务缩短长URL,并可选择为生成的短链接生成二维码。
触发条件
/shorten命令- 用户需要缩短URL
- 用户想要短链接
使用方法
# 缩短URL
python scripts/url_shortener.py "https://example.com/very/long/path"
# 使用特定服务缩短
python scripts/url_shortener.py "https://example.com" --service tinyurl
# 为短链接生成二维码
python scripts/url_shortener.py "https://example.com" --qr --output qr.png
标签
url, shortener, link, tinyurl, qr
兼容性
- Codex: ✅
- Claude Code: ✅