📈 GH Trending Explorer 🎲 Surprise me

← all repos

ScrapeGraphAI / Scrapegraph-ai

git clone https://github.com/ScrapeGraphAI/Scrapegraph-ai.git v2.3.1 · 14d ago 🔥 on GitHub Trending today

Python scraper based on AI

+57
stars, 24h · #141
—
stars, 7 days
—
stars, 30 days
32k
★ total
3.3k
forks · 24 open issues

Star history starts 2026-10-20; the chart appears after the second daily snapshot.

LanguagePython
LicenseMIT
Created2024-01-27 (2y ago)
Last push14d ago
Watchers181
OwnerOrganization

Seen on GitHub Trending

  • 2026-10-20 — #14 daily in python · +57 ★

GitHub topics

Links

README excerpt
## 🚀 **Looking for an even faster and simpler way to scrape at scale (only 5 lines of code)?** Check out our enhanced version at **ScrapeGraphAI.com**! 🚀
---
# 🕷️ ScrapeGraphAI: You Only Scrape Once
English | 中文 | 日本語
| 한국어
| Русский | Türkçe
| Deutsch
| Español
| français
| Português
| Italiano
ScrapeGraphAI is a *web scraping* python library that uses LLM and direct graph logic to create scraping pipelines for websites and local documents (XML, HTML, JSON, Markdown, etc.).
Just say which information you want to extract and the library will do it for you!
## 🚀 Integrations
ScrapeGraphAI offers seamless integration with popular frameworks and tools to enhance your scraping capabilities. Whether you're building with Python or Node.js, using LLM frameworks, or working with no-code platforms, we've got you covered with our comprehensive integration options..
You can find more informations at the following link
**Integrations**:
- **API**: Documentation
- **SDKs**: Python, Node
- **LLM Frameworks**: Langchain, Llama Index, Crew.ai, Agno, CamelAI
- **Low-code Frameworks**: Pipedream, Bubble, Zapier, n8n, Dify, Toolhouse
- **MCP server**: Link
## 🚀 Quick install
The reference page for Scrapegraph-ai is available on the official page of PyPI: pypi.
 [code] 
**Note**: it is recommended to install the library in a virtual environment to avoid conflicts with other libraries 🐱
## 💻 Usage
There are multiple standard scraping pipelines that can be used to extract information from a website (or local file).
The most common one is the `SmartScraperGraph`, which extracts information from a single page given a user prompt and a source URL.
 [code] 
> [!NOTE]
> For OpenAI and other models you just need to change the llm config!
> [code] 
The output will be a dictionary like the following:
 [code] 
There are other pipelines that can be used to extract information from multiple pages, generate Python scripts, or even generate audio files.
| Pipeline Name | Description |
|-------------------------|------------------------------------------------------------------------------------------------------------------|
| 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 extracts information from multiple pages given a single prompt and a list of sources. |
| ScriptCreatorMultiGraph | Multi-page scraper that generates a Python script for extracting information from multiple pages and sources. |
For each of these graphs there is the multi version. It allows to make calls of the LLM in parallel.
It is possible to use different LLM through APIs, such as *