# ScrapeGraphAI: the free AI scraper that pulls leads off any page

> Pulls contact info and other data from web pages by describing it.

- **What it does:** Installs a free scraping tool where you just describe what you want, like contact emails on a page, and it pulls that info out of websites for you. You get the results as organized data without writing any scraping rules.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_60678c96f9acd2925cb3fa37`
- **Creator:** @orbit.gtm on Instagram
- **Safety:** Checked by Orbit: use with care. Unpinned pip install; scrapes sites for emails; sends content to LLMs
- **Last updated:** 2026-11-14
- **Page:** https://orbitinbox.app/s/scrapegraphai-the-free-ai-scraper-that-pulls-leads-off-any

## Skill

---
name: scrapegraphai-lead-scraper
description: Use when you say "scrape leads for me" or "pull every contact email from this page"; it installs ScrapeGraphAI, the free MIT Python scraper, and runs its LLM pipelines so you only describe the information you want and get it back as structured data.
---

# ScrapeGraphAI: the free AI scraper that pulls leads off any page

## What it does

ScrapeGraphAI is a web scraping Python library that uses an LLM and direct graph logic to build scraping pipelines for websites and local documents (XML, HTML, JSON, Markdown and more). You say which information you want to extract and the library does it, so you do not write selectors.

It ships several pipelines, as the README lists them:

- SmartScraperGraph: single-page scraper that only needs a user prompt and an input source.
- SearchGraph: multi-page scraper that extracts information from the top n search results of a search engine.
- SpeechGraph: single-page scraper that extracts information from a website and generates an audio file.
- ScriptCreatorGraph: single-page scraper that extracts information from a website and generates a Python script.
- SmartScraperMultiGraph: multi-page scraper that works from one prompt and a list of sources.
- ScriptCreatorMultiGraph: generates a Python script for extracting information from multiple pages and sources.

Each graph has a multi version, which runs the LLM calls in parallel. The repo also has integrations: Langchain, Llama Index, Crew.ai, Agno, CamelAI, and low-code tools including Zapier, n8n, Pipedream, Bubble, Dify and Toolhouse, plus an MCP server listing and Python and Node SDKs for the hosted API.

It is MIT licensed. The authors state the library is meant for data exploration and research purposes only.

## What you need

- Python 3.12 or newer (the project requires >=3.12,<4.0).
- Playwright browsers, installed with the command below, for fetching website content.
- An LLM. Either an API key for a provider such as OpenAI, Groq, Azure, Gemini or MiniMax, or local models through Ollama. For local models you need Ollama installed and the model pulled with `ollama pull`.
- Nothing paid in this repo. The separate managed cloud API is paid and uses an `SGAI_API_KEY`; you do not need it for this library.

## Setup

The README recommends installing in a virtual environment.

```bash
pip install scrapegraphai

# IMPORTANT (for fetching websites content)
playwright install
```

A working single-page scrape, straight from the README:

```python
from scrapegraphai.graphs import SmartScraperGraph

# Define the configuration for the scraping pipeline
graph_config = {
    "llm": {
        "model": "ollama/llama3.2",
        "model_tokens": 8192,
        "format": "json",
    },
    "verbose": True,
    "headless": False,
}

# Create the SmartScraperGraph instance
smart_scraper_graph = SmartScraperGraph(
    prompt="Extract useful information from the webpage, including a description of what the company does, founders and social media links",
    source="https://scrapegraphai.com/",
    config=graph_config
)

# Run the pipeline
result = smart_scraper_graph.run()

import json
print(json.dumps(result, indent=4))
```

To use OpenAI or another API model, change only the llm config:

```python
graph_config = {
    "llm": {
        "api_key": "YOUR_OPENAI_API_KEY",
        "model": "openai/gpt-4o-mini",
    },
    "verbose": True,
    "headless": False,
}
```

The package collects anonymous usage metrics. To opt out, set the environment variable:

```bash
export SCRAPEGRAPHAI_TELEMETRY_ENABLED=false
```

This tool reads other people's websites. Use it only on your own sites and data, or where the site's terms and robots rules allow it, and keep any contact data you collect within the rules that apply to you.

## How to use it with Claude

- "Install scrapegraphai in a virtual environment, run playwright install, and check it imports."
- "Write a SmartScraperGraph script that takes this company URL and pulls out what they do, the founders and their social media links."
- "Use SmartScraperMultiGraph with this list of twenty company URLs and one prompt, and save the results to a JSON file."
- "Set up SearchGraph so it extracts the information I asked for from the top search results instead of a single page."
- "Switch my graph_config from ollama/llama3.2 to openai/gpt-4o-mini using my own API key."
- "Use ScriptCreatorGraph to generate a reusable Python script for scraping this page layout."

For anything the README does not cover, including other graphs and schema options, see the project's documentation at https://docs.scrapegraphai.com/introduction and the README at https://github.com/ScrapeGraphAI/Scrapegraph-ai

## Credits

Made by ScrapeGraphAI (Scrapegraph-ai), packaged by Orbit. Source: https://github.com/ScrapeGraphAI/Scrapegraph-ai — license: MIT.

Shared by @orbit.gtm, credited on Orbit.