dsh-useragent
User-Agent 解析:识别浏览器/版本、操作系统、设备类型、渲染引擎与爬虫
AI 분석
用于解析客户端 User-Agent 字符串以识别设备和浏览器环境。适合需要进行访问日志分析、设备适配或爬虫识别的 Web 开发者。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:uckkk/dsh-useragentdsh-useragent · User-Agent 解析
解析 User-Agent 字符串,识别浏览器/版本、操作系统、设备类型、引擎与爬虫。纯 Node 实现。
提供的工具
| 工具 | 作用 |
|---|---|
parse_ua | 解析 UA 字符串 |
安装
dsh plugin add dsh-useragent
安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-useragent"。
用法示例
这个 UA 是什么浏览器和系统
→ 调用 parse_ua(ua="Mozilla/5.0 ... Chrome/120 ...")