Back to skills
extension
Category: Data & AnalyticsAPI key required

使用 llm-scraper 从 JavaScript 渲染的页面中提取模式化的 JSON 数据

打开一个渲染后的页面,描述你想要的字段,并返回结构化数据,而无需手动维护脆弱的选择器。

personAuthor: user_3c6cb52ehubcommunity

使用 llm-scraper 从 JavaScript 渲染的页面中提取模式化的 JSON 数据

Open a rendered page, describe the fields you want, and return structured data without hand-maintaining brittle selectors.

Prerequisites

Node.js, Playwright-compatible browser runtime, llm-scraper package, supported LLM provider credentials, target URLs

Installation

Use the upstream install or setup path that matches your environment:

  • npm i zod playwright llm-scraper
  • npm i @ai-sdk/openai
  • npm i @ai-sdk/anthropic
  • npm i @ai-sdk/google

Basic usage or getting-started notes:

  • Install the required dependencies from npm:

  • Initialize your LLM:

  • OpenAI

  • Source: https://github.com/1991513ccie-png/skills

  • Extracted from upstream docs: https://raw.githubusercontent.com/mishushakov/llm-scraper/HEAD/README.md

Documentation

  • https://github.com/1991513ccie-png/skills