Back to directory

LLM Scraper

A TypeScript library that extracts structured data from any web page by sending its content to a large language model against a defined schema.

LLM Scraper

LLM Scraper loads a page through Playwright in one of several formats, including pre-processed or raw HTML, Markdown, extracted text, or a screenshot for multimodal models, then asks a language model to fill in a schema defined with Zod or JSON Schema. It works with model providers exposed through the Vercel AI SDK, including OpenAI, Anthropic, Google, Groq, and local models through Ollama, and keeps full type safety in TypeScript.

It supports streaming partial results as the model generates them and can generate reusable extraction code from an example run instead of calling the model on every page. Version 2.0 adds support for AI SDK 6 and updated examples.

It is distributed under the MIT license.

More in Browser automation

See all 88
  • Loads an unpacked Chrome extension that lets a local AI coding agent click, type and read the tabs, cookies and logins of a Chrome window you already have open.

  • Hronaut

    hronaut.dev

    A visible, persistent Electron browser that exposes durable, named agent workspaces over MCP, so a coding agent's browser session stays open and inspectable independently of any one AI conversation.

  • Prompt OS

    github.com

    A desktop AI agent for Windows that executes terminal commands, manages files, writes and runs code, browses the web and reads the screen, acting on natural-language requests rather than only answering them.