NodeJs:从响应体的特定标记中提取数据

NodeJs: Extract data from particular tag from body of response

本文关键字:提取 数据 响应 NodeJs      更新时间:2023-09-26

如何仅从nodejs中http-get-request的响应体中的标记获取数据。我能得到像findByElementName或类似的东西吗?

如果您想用node js解析HTML,如果您想使用XPATH,请查看https://github.com/goto100/xpath

或者https://github.com/cheeriojs/cheerio如果您想像JQUERY 中那样使用选择器