█

AI/TLDR

Buy me a coffee
Buy me a coffee

Scraperr

Self-hosted, no-code web scraper with XPath jobs, an LLM agent mode and chat over scraped data

Web Scraping & CrawlingOpen source
Latest
v1.1.6
Updated
13 Jul 2025
Language
TypeScript, Python
License
MIT
$git clone https://github.com/jaypyles/Scraperr.git

What's new

v1.1.613 Jul 2025

"Choose Your Own Database": the database can be set to SQLite, PostgreSQL or MySQL through the optional configuration.

IN SHORT

What is Scraperr?

Scraperr is an open-source, self-hosted web scraping service whose stated aim is to let you scrape websites without writing a single line of code. You run it with Docker Compose (or Helm on Kubernetes), open its web UI, paste a URL, name the elements you want and give each an XPath selector. It sits in the Web Scraping & Crawling category of the Data & Labeling tools and is open-source, written in TypeScript, Python and licensed MIT.

Updated Markdown version ↗

Overview

Scraperr is an open-source, self-hosted web scraping service whose stated aim is to let you scrape websites without writing a single line of code. You run it with Docker Compose (or Helm on Kubernetes), open its web UI, paste a URL, name the elements you want and give each an XPath selector. The job goes into a queue, a Playwright-driven browser does the fetching, and the results land in a database where you can view them as a table and download them as CSV or markdown.

Scraperr's Scrape Webpage screen with a URL field, advanced options and an Elements to Scrape table of names and XPath selectors, beside a sidebar with Jobs, Agent, Chat, Statistics, Cron Jobs, Recordings and Media.
The main screen: a URL, the elements to capture by XPath, and the sidebar of jobs, agent, chat and scheduling pages.Scraperr README ↗

The frontend (Next.js) is decoupled from the API (FastAPI), so the same jobs can be submitted, polled and deleted over a REST API from your own applications, with Swagger docs served by the API container. Around the core scraper sit the options a scraping job usually needs: multi-page spidering within a domain, custom JSON headers and cookies, Playwright-format proxies, automatic media downloads, cron-scheduled jobs, browser recordings with optional VNC viewing, and completion notifications to Discord or email.

Scraperr's Chat with AI page, with a job selected in the top right and an AI answer about the scraped page text.
AI chat answers questions from the text a selected scraping job collected.Scraperr docs ↗

Its AI side comes in two parts, both backed by either an OpenAI model or a local Ollama model configured through environment variables. An AI chat page answers questions about the text a scraping job collected, with a per-job chat history. An agent mode (added in v1.1.0) takes a URL and a plain-English prompt, converts the rendered page to markdown annotated with XPaths, and asks the model to choose the XPaths to capture, so you can describe what you want instead of writing selectors.

The GitHub repository is archived (read-only); the last published GitHub release is v1.1.6 from July 2025, and the code remains available under the MIT license.

What it does

  • No-code scraping from a web UI: enter a URL, name elements and target them with XPath selectors, then submit the job to a queue.
  • Agent mode: describe what to extract in plain English and an OpenAI or Ollama model picks the XPaths from the rendered page.
  • AI chat over results: ask questions about the text a scraping job gathered, with a job selector and chat history kept per job.
  • Domain spidering, custom JSON headers and cookies, Playwright-format proxies, and automatic download of images, videos and documents.
  • Job table with search, favourites, rerun and download, plus CSV and markdown export and a REST API for submitting and managing jobs.
  • Self-hosted via Docker Compose or Helm, with SQLite by default or PostgreSQL / MySQL, Discord or SMTP notifications, recordings and optional VNC access.

Getting started

Scraperr ships as two containers (the Next.js frontend and the FastAPI backend) wired together in docker-compose.yml. The quickstart below follows the official docs; Kubernetes users can follow the Helm deployment guide instead.

Clone the repository

bashbash
git clone https://github.com/jaypyles/Scraperr.git
cd Scraperr

Review the environment variables

The defaults work as-is, but you can set the API URLs for the frontend and the authentication settings for the API in docker-compose.yml.

yamlyaml
scraperr:
  environment:
    - NEXT_PUBLIC_API_URL=http://scraperr_api:8000
    - SERVER_URL=http://scraperr_api:8000
scraperr_api:
  environment:
    - SECRET_KEY=your_secret_key
    - ALGORITHM=HS256
    - ACCESS_TOKEN_EXPIRE_MINUTES=600

Start the containers

Use the Makefile target to bring the stack up, then open http://localhost (or whichever port you expose for the frontend) to reach the UI.

bashbash
make up
Scraperr's Scrape Jobs table listing a completed job with its URL, XPath elements, result dropdown, status and Download and Rerun buttons.
Once a job completes, the job table offers its results, a CSV download and a rerun.Scraperr docs ↗

Enable the AI features

Give the API container either an OpenAI key and model or an Ollama URL and model. The chat page and agent mode use whichever is configured.

yamlyaml
scraperr_api:
  environment:
    OPENAI_KEY: your_openai_api_key
    OPENAI_MODEL: gpt-4o
    # or, for a local model:
    # OLLAMA_URL: http://ollama:11434
    # OLLAMA_MODEL: phi3:latest

Submit a job from code (optional)

The API accepts the same jobs the UI builds. Interactive API docs are served at http://localhost:8000/docs.

pythonpython
import requests

url = "http://localhost/api/submit-scrape-job"
data = {
  "id": "",
  "url": "http://quotes.toscrape.com/",
  "elements": [
    {
      "name": "Quotes",
      "xpath": "//span[@class='text']",
      "url": "http://quotes.toscrape.com/"
    }
  ],
  "user": "",
  "time_created": "2024-11-07T17:13:55.448Z",
  "result": [],
  "job_options": {
    "multi_page_scrape": False,
    "custom_headers": {}
  },
  "status": "Queued",
  "chat": ""
}
response = requests.post(url, json=data)
print(response.json())

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Giving non-developers a self-hosted UI to collect structured data from web pages and hand it off as CSV, without writing scraper code.
  • Prototyping an extraction by describing the data in plain English and letting a local Ollama model or an OpenAI model propose the XPath selectors.
  • Asking questions about scraped page text through an LLM chat tied to each job, instead of reading raw results.
  • Running scheduled, proxied or cookie-authenticated scraping jobs on your own infrastructure and pulling the results into other apps over the REST API.

Version history

Every verified update to Scraperr that AI/TLDR tracked, newest first — each links to our coverage and the official changeset.

  1. 2025-07-13v1.1.6

    "Choose Your Own Database": the database can be set to SQLite, PostgreSQL or MySQL through the optional configuration.

  2. 2025-05-20v1.1.0

    Adds a basic agent mode, where an LLM picks the elements to scrape from a plain-English prompt.

  3. 2025-05-17v1.0.15

    "VNC + Recordings": adds recordings of scraping sessions and VNC access to the automated browser.

  4. 2025-05-11v1.0.10

    Rewrites browser automation from Selenium to Playwright, adding proxy handling, asynchronous scraping and media collection.

How Scraperr compares

Scraperr alongside other open-source web scraping & crawling tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Firecrawl★ 214kA crawling service and API that converts whole websites into clean Markdown or structured JSON ready for LLMs.
Agent Reach★ 116kA capability layer that installs, health-checks and routes readers so a CLI agent can read and search web pages, YouTube, RSS, GitHub, Reddit, Twitter/X and more without API fees.
Scrapling★ 107kA Python web scraping framework whose parser relocates your elements when pages change, with stealthy fetchers and a Scrapy-like spider engine for full crawls.
Crawl4AI★ 88.2kA local-first Python web crawler that turns pages into clean Markdown for use in RAG and LLM pipelines.
Scrapy★ 65.7kA mature Python framework for writing fast spiders that crawl websites and extract structured data at scale.
changedetection.io★ 36.1kA self-hosted web page change monitor with XPath/CSS/jq filters, browser steps and restock alerts, which can route every diff through an LLM to suppress noise.
ScrapeGraphAI★ 33kA Python library that uses LLMs and a graph pipeline to extract data from pages based on natural-language prompts.
Scraperr★ 4.9kSelf-hosted, no-code web scraper with XPath jobs, an LLM agent mode and chat over scraped data