READMESource: main@7e669ca6
dsh-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 ...")
No comments yet. Be the first to write one.