What do you want to do?
3 use cases
-
Scrape a web page by describing what you want
Point SmartScraperGraph at a URL with a prompt and get back a JSON dictionary of the fields you asked for.
View prompt
Using ScrapeGraphAI/Scrapegraph-ai with <ollama/llama3.2 or my OpenAI key from the environment>, build a SmartScraperGraph that visits each URL in <list> and extracts <fields>. Save all results to one JSON file and flag any page where a field came back empty.
-
Collect facts from the top search results in one run
Use SearchGraph to pull the same information from the top results of a search engine.
View prompt
With ScrapeGraphAI/Scrapegraph-ai, use SearchGraph to find <topic> and extract <fields> from the top search results into a table. Note which result each row came from so I can verify it.
-
Generate a plain Python scraper you can run without an LLM
Use ScriptCreatorGraph to have the LLM write a scraping script for a page, then run that script on its own.
View prompt
Use ScrapeGraphAI/Scrapegraph-ai's ScriptCreatorGraph to generate a Python scraper for <url> that extracts <fields>. Save the generated script to <file>, explain what it does, and run it once to show the output.
Quick start with Scrapegraph AI
- Check you have what it needs: Python, ideally in a virtual environment; Playwright browsers, installed with playwright install; An LLM: a local model through Ollama, or an API key for OpenAI, Groq, Azure, Gemini or another provider.
- Open ScrapeGraphAI/Scrapegraph-ai on GitHub and read the README and license.
- Run
pip install scrapegraphaiinside a virtual environment - Run
playwright installso the library can fetch website content - Set graph_config with an llm block, for example the ollama/llama3.2 model, or an api_key and openai/gpt-4o-mini
- Create a SmartScraperGraph with your prompt, the source URL and the config
These steps come from our top use case, Scrape a web page by describing what you want, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ScrapeGraphAI/Scrapegraph-ai
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forAnalysts and developers who need data from websites but do not want to write and maintain CSS selectors.
- Why it is hot32k stars, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/ScrapeGraphAI/Scrapegraph-ai ยท Back to Hot repos
Requirements
- Python, ideally in a virtual environment
- Playwright browsers, installed with playwright install
- An LLM: a local model through Ollama, or an API key for OpenAI, Groq, Azure, Gemini or another provider
Add this badge to your README
Maintain Scrapegraph AI? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/scrapegraphai-scrapegraph-ai/?utm_source=github&utm_medium=badge&utm_campaign=ScrapeGraphAI-Scrapegraph-ai)
HTML
<a href="https://dedupedai.com/use-cases/scrapegraphai-scrapegraph-ai/?utm_source=github&utm_medium=badge&utm_campaign=ScrapeGraphAI-Scrapegraph-ai"><img src="https://dedupedai.com/badge/ScrapeGraphAI/Scrapegraph-ai.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Scrapegraph AI
What is Scrapegraph AI?
ScrapeGraphAI is a Python web scraping library that uses an LLM and graph logic to build scraping pipelines for websites and local documents such as XML, HTML, JSON and Markdown. You describe the information you want in plain language and pick a pipeline: SmartScraperGraph for one page, SearchGraph for search results, SmartScraperMultiGraph for many pages, ScriptCreatorGraph to generate a scraping script, or SpeechGraph to turn a page into audio. It works with OpenAI, Groq, Azure, Gemini and local models through Ollama. It is an open-source project on GitHub: https://github.com/ScrapeGraphAI/Scrapegraph-ai.
How do I use Scrapegraph AI?
Run pip install scrapegraphai inside a virtual environment; then run playwright install so the library can fetch website content; set graph_config with an llm block, for example the ollama/llama3.2 model, or an api_key and openai/gpt-4o-mini. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Scrapegraph AI for?
Analysts and developers who need data from websites but do not want to write and maintain CSS selectors.
What can I do with Scrapegraph AI?
3 use cases so far, for example: Scrape a web page by describing what you want; Collect facts from the top search results in one run; Generate a plain Python scraper you can run without an LLM. Each has steps and a copy-paste agent prompt.
What do I need to run Scrapegraph AI?
Python, ideally in a virtual environment; Playwright browsers, installed with playwright install; An LLM: a local model through Ollama, or an API key for OpenAI, Groq, Azure, Gemini or another provider.
What are alternatives to Scrapegraph AI?
Other hot AI repos in Data and analytics: Auto Ontology, Marker, Datatrove, Chronos Forecasting, Apify MCP Server.
Is Scrapegraph AI safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.