使用浏览器 document.evaluate 在本地 HTML 文档上匹配节点。
匹配节点
| # | 类型 | 内容 |
|---|
An XPath tester is an online tool for evaluating XPath expressions using the browser's built-in document.evaluate engine against local HTML. It lists the matched nodes, attributes, and text, as well as number, string, and boolean results. It's ideal for debugging XPath selectors used in scrapers, data extraction, or front-end automation scripts.
Great for debugging web scraping rules, verifying front-end automation selectors, or learning XPath syntax. Note that the tool parses the HTML you paste locally and does not visit external sites; an invalid expression shows an "invalid XPath" message.
//a/@href)