Scrapegraph-ai

Active
GitHub Python MIT

Description

Python scraper based on AI that uses LLMs and knowledge graphs to automatically build web data extraction pipelines.

Key Features

  • SmartScraperGraph — Single-page pipeline extracting structured data with just a prompt and URL
  • SearchGraph — Multi-page pipeline extracting info from top N search engine results
  • ScriptCreatorGraph — Auto-generates Python scraping scripts from webpage content
  • Multi-Model Support — Compatible with OpenAI, Ollama, Groq, Azure, Gemini and other LLM backends
  • MCP Server Integration — Can serve as an MCP tool callable by AI agents
  • Multi-Format Support — Handles XML, HTML, JSON, Markdown and other local document formats

Use Cases

💡 Automatically extracting product prices, reviews, and descriptions from e-commerce websites
💡 Batch scraping search results and structuring market research data
💡 Generating reusable Python scraping scripts for periodic website monitoring
💡 Providing web data extraction tools for AI agents to support RAG knowledge base construction
💡 Processing local HTML/JSON files to extract key information for data analysis

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (30.4k stars)
  • Permissive open-source license (MIT)
  • Established track record (2 years in production)

Quick Start

pip install scrapegraphai
playwright install

from scrapegraphai.graphs import SmartScraperGraph

graph_config = {
    "llm": {"model": "ollama/llama3.2"},
    "verbose": True,
    "headless": False,
}

scraper = SmartScraperGraph(
    prompt="Extract product info from this page",
    source="https://example.com/product",
    config=graph_config
)
print(scraper.run())

Related Projects

Tongyi DeepResearch

19.9k · Python
Stale B

Open-source deep research agent from Alibaba Tongyi Lab, using multi-stage iterative information retrieval and reasoning to conduct deep analysis, synthesis, and summarization of complex topics with web search and document analysis.

pythonagentllm +3
  • · 30.5B total parameter agentic LLM with only 3.3B activated per token (MoE architecture)
  • · Fully automated synthetic data generation pipeline for agentic pre-training, SFT, and RL
  • · Large-scale continual pre-training on diverse agentic interaction data

AutoCodeRover

3.1k · Python
Stale C

AutoCodeRover is a project structure-aware autonomous software engineer agent that achieves automated program repair and issue resolution by understanding the overall codebase architecture.

codingpythonagent +2
  • · Fully autonomous bug fixing and feature addition on GitHub issues using LLM-powered program analysis
  • · Program Structure Aware code search via abstract syntax tree analysis for precise context retrieval
  • · Statistical fault localization using test cases to achieve higher repair rates when tests are available

DeepCode

16.5k · Python
Active A+

DeepCode is an open agentic coding platform supporting Paper2Code, Text2Web, and Text2Backend, leveraging agent technology for automated software development workflows.

codingpythonllm +2
  • · Multi-agent coding system with separate Planning, Implementation, and Review agents for structured development
  • · Paper2Code capability to convert research papers into working code implementations
  • · Text2Web and Text2Backend for generating web frontends and backend services from natural language descriptions

MiroThinker

8.4k · Python
Normal A

A deep research agent framework optimized for complex research and prediction tasks, with MiroThinker-1.7 and MiroThinker-H1 models achieving 74.0 and 88.2 on BrowseComp benchmark, supporting multi-step reasoning and information retrieval.

pythonagentllm +3
  • · Deep research agent framework optimized for complex research and prediction tasks
  • · MiroThinker-1.7 achieves 74.0 on BrowseComp, H1 model reaches 88.2
  • · Supports 256K context window and up to 300 tool calls per task