运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install cn-url-shortener
镜像加速npx clawhub@latest install cn-url-shortener --registry https://cn.longxiaskill.com镜像同步中
技能文档
cn-url-shortener 短链接生成工具,让分享更简洁。 功能
- 短链生成:长URL转短链
- 自定义后缀:设置易记后缀
- 有效期:设定过期时间
- 点击统计:查看访问次数
- 批量生成:一次处理多URL
安装要求 Python 3.6+,无外部依赖
用法 # 生成短链 python3 scripts/url_shortener.py "https://example.com/very/long/url" # 自定义后缀 python3 scripts/url_shortener.py "https://example.com" --alias "mylink" # 查询统计 python3 scripts/url_shortener.py "stats 短链代码"
示例 输入:https://example.com/very/long/url 输出:短链: https://short.url/abc123
分类:工具 关键词:短链接, URL缩短, short URL, 短网址, link