mit einem Klick
inspect-page
// Inspect a live web page using headless Chrome. Gets screenshots, meta tags, accessibility tree, and runs CSS selectors or JS expressions against the rendered DOM.
// Inspect a live web page using headless Chrome. Gets screenshots, meta tags, accessibility tree, and runs CSS selectors or JS expressions against the rendered DOM.
| name | inspect-page |
| description | Inspect a live web page using headless Chrome. Gets screenshots, meta tags, accessibility tree, and runs CSS selectors or JS expressions against the rendered DOM. |
Use this instead of fetching pages with WebFetch or curl. This tool opens the page in a real browser, executes JavaScript, and gives you the rendered result.
Useful for:
node .bin/inspect-page.mjs "<url>"
With no flags, this outputs:
<meta>, JSON-LD, COinS)Test CSS selectors:
node .bin/inspect-page.mjs "<url>" --selector "h1" --selector "article .author"
Returns tag, text content, href, and attributes for up to 20 matching elements.
Run arbitrary expressions against the rendered page:
node .bin/inspect-page.mjs "<url>" --eval "document.querySelector('h1').textContent"
Open a headed browser you can interact with:
node .bin/inspect-page.mjs "<url>" --interact
Analyze a website's API by capturing network traffic (HAR) and generating an OpenAPI spec via mitmproxy2swagger.
Create or update test cases for a Zotero translator by running it against live URLs and capturing the output.
Develop an export translator that converts Zotero items into a file format (JSON, XML, CSV, etc.).
Develop an import translator that parses a file format (JSON, XML, RIS, BibTeX, CSV, etc.) into Zotero items.
Develop a search translator that looks up items by identifier (DOI, ISBN, PMID, arXiv ID, etc.) via an external API. NOT for websites with search pages — use develop-web-translator for those.
Develop a web translator that scrapes bibliographic data from a website. This is the most common translator type.