postman 获取HTML 里name=token 的值

html 复制代码
<input type="hidden" name="token" value="LT-93387-t7KaInf3Fox2Hd0F24eHpBFg7BcNAp" />

接口返回的HTML,可以使用cheerio获取具体的值,如下:

//引入cheerio

const $ = cheerio.load(responseBody)

//解析name ="lt"

console.log($('name ="lt"').val())

相关推荐
呼噜想睡觉17 小时前
Flex弹性布局
css·html·css3
AI行业学习18 小时前
Claude Code + cc-switch + Git + Node.js 全套下载+安装+配置完整版
开发语言·git·python·前端框架·node.js·html·notepad++
并不喜欢吃鱼1 天前
一.前端web开发:零基础吃透 HTML5 核心知识
前端·html·html5
昨夜星河入梦来1 天前
postman接口测试报错503的解决方法
开发语言·postman
AI行业学习1 天前
Claude Code + cc-switch + Git + Node.js 一站式完整安装配置教程【8.3】
git·python·安全·前端框架·node.js·html·notepad++
AI行业学习1 天前
Claude Code + cc-switch + Git + Node.js 一站式完整安装配置教程(2026最新·国内可用版)
人工智能·git·python·安全·node.js·html·notepad++
Hy行者勇哥2 天前
软件测试完整体系
测试工具
a1117762 天前
小鸡下蛋 小游戏 html
前端·开源·html
DevOpenClub2 天前
用网页快照、静态 HTML 和 PDF 转换接口构建网页归档 Agent
前端·人工智能·pdf·html
TunerT_TQ2 天前
Valhalla 静态工程审阅 #012|Hertz 源码证据驱动评测【大厂开源基础设施特辑】
测试工具·微服务·开源·github·字节跳动·cloudwego·http框架